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

38 lines
694 B
Makefile
Raw Normal View History

2009-09-23 07:21:24 +03:00
include Rules.make
SUBDIRS = src/sdl-instead stead games themes icon desktop doc languages
2009-02-21 12:52:44 +02:00
2009-11-08 16:33:23 +02:00
all: config.make
2009-02-21 12:52:44 +02:00
@for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir $(@) || exit 1; \
done;
2009-11-08 16:33:23 +02:00
config.make:
echo "# you can define own flags here" > config.make
include config.make
2009-02-21 12:52:44 +02:00
clean:
@for dir in $(SUBDIRS); do \
$(MAKE) clean -C $$dir $(@) || exit 1; \
done;
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