2009-08-23 14:38:45 +00:00
|
|
|
SUBDIRS:= `ls | egrep -v '^(\.svn)$$'`
|
2009-02-13 20:44:54 +00:00
|
|
|
|
|
|
|
DATESTRING := $(shell date +%Y)$(shell date +%m)$(shell date +%d)
|
|
|
|
|
|
|
|
all:
|
2009-08-23 14:38:45 +00:00
|
|
|
@for i in $(SUBDIRS); do \
|
|
|
|
if test -e $$i/Makefile ; then \
|
|
|
|
echo "-----------------------------------------------------------";\
|
|
|
|
$(MAKE) -C $$i || { exit 1;} \
|
|
|
|
fi; \
|
|
|
|
done;
|
2009-02-13 20:44:54 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -f *.bz2
|
2009-08-23 14:38:45 +00:00
|
|
|
@for i in $(SUBDIRS); do \
|
|
|
|
if test -e $$i/Makefile ; then \
|
|
|
|
$(MAKE) -C $$i clean || { exit 1;} \
|
|
|
|
fi; \
|
|
|
|
done;
|
2009-02-13 20:44:54 +00:00
|
|
|
|
|
|
|
dist: clean
|
2009-08-20 22:05:44 +00:00
|
|
|
@tar --exclude=.svn -cvjf wii-examples-$(DATESTRING).tar.bz2 *
|