This repository has been archived on 2019-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
adventin/Makefile

55 lines
1.2 KiB
Makefile
Raw Normal View History

2009-09-23 07:21:24 +03:00
include Rules.make
2009-11-09 10:43:41 +02:00
include config.make
VERTITLE := instead-$(VERSION)
ARCHIVE := instead_$(VERSION).tar.gz
2009-09-23 07:21:24 +03:00
SUBDIRS = src/sdl-instead stead games themes icon desktop doc languages
2009-02-21 12:52:44 +02:00
2009-11-09 10:43:41 +02:00
all:
2009-02-21 12:52:44 +02:00
@for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir $(@) || exit 1; \
done;
2009-11-09 10:43:41 +02:00
Rules.make:
ln -sf Rules.make.standalone Rules.make
2009-11-08 16:33:23 +02:00
config.make:
echo "# you can define own flags here" > config.make
2009-11-09 10:43:41 +02:00
svnclean:
svn st | grep "^?" | awk '{ print $$2 }' | grep -v "config.make" | while read l; do $(RM) -rf $$l; done
tarball: clean
$(RM) -f Rules.make
ln -sf Rules.make.standalone Rules.make
ln -sf ./ $(VERTITLE)
tar -cz --exclude $(VERTITLE)/$(VERTITLE) --exclude .svn --exclude CVS --exclude $(ARCHIVE) -f $(ARCHIVE) $(VERTITLE)/*
$(RM) -f $(VERTITLE)
2009-11-08 16:33:23 +02:00
2009-02-21 12:52:44 +02:00
clean:
@for dir in $(SUBDIRS); do \
$(MAKE) clean -C $$dir $(@) || exit 1; \
done;
2009-11-09 10:43:41 +02:00
$(RM) -f $(ARCHIVE)
2009-02-21 12:52:44 +02:00
install: all
2009-09-23 07:21:24 +03:00
ifeq ($(SYSTEMSETUP), yes)
2009-02-21 12:52:44 +02:00
@for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir install || exit 1; \
done;
2009-09-23 07:21:24 +03:00
else
echo No install needed
endif
2009-02-21 12:52:44 +02:00
2009-09-23 07:21:24 +03:00
uninstall:
ifeq ($(SYSTEMSETUP), yes)
@for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir uninstall || exit 1; \
done;
$(RM) -rf $(STEADPATH)
else
echo No uninstall needed
endif
2009-11-09 10:43:41 +02:00