mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-12-22 18:39:18 +00:00
Simplify Makefile
This commit is contained in:
parent
2f278ab6e7
commit
33da364507
3 changed files with 23 additions and 49 deletions
|
@ -1,25 +1,17 @@
|
|||
SUBDIRS:= `ls | egrep -v '^(\.svn)$$'`
|
||||
MAKEFILES := $(shell find . -mindepth 2 -maxdepth 2 -name Makefile)
|
||||
|
||||
all:
|
||||
@for i in $(SUBDIRS); do \
|
||||
if test -e $$i/Makefile ; then \
|
||||
echo "-----------------------------------------------------------";\
|
||||
$(MAKE) -C $$i || { exit 1;} \
|
||||
fi; \
|
||||
@for i in $(MAKEFILES); do \
|
||||
echo "-----------------------------------------------------------"; \
|
||||
$(MAKE) -C `dirname $$i` || exit 1; \
|
||||
done;
|
||||
|
||||
clean:
|
||||
@rm -f *.bz2
|
||||
@for i in $(SUBDIRS); do \
|
||||
if test -e $$i/Makefile ; then \
|
||||
$(MAKE) -C $$i clean || { exit 1;} \
|
||||
fi; \
|
||||
@for i in $(MAKEFILES); do \
|
||||
$(MAKE) -C `dirname $$i` clean || exit 1; \
|
||||
done;
|
||||
|
||||
install:
|
||||
@rm -f *.bz2
|
||||
@for i in $(SUBDIRS); do \
|
||||
if test -e $$i/Makefile ; then \
|
||||
$(MAKE) -C $$i install || { exit 1;} \
|
||||
fi; \
|
||||
@for i in $(MAKEFILES); do \
|
||||
$(MAKE) -C `dirname $$i` install || exit 1; \
|
||||
done;
|
|
@ -1,25 +1,17 @@
|
|||
SUBDIRS:= `ls | egrep -v '^(\.svn)$$'`
|
||||
MAKEFILES := $(shell find . -mindepth 2 -maxdepth 2 -name Makefile)
|
||||
|
||||
all:
|
||||
@for i in $(SUBDIRS); do \
|
||||
if test -e $$i/Makefile ; then \
|
||||
echo "-----------------------------------------------------------";\
|
||||
$(MAKE) -C $$i || { exit 1;} \
|
||||
fi; \
|
||||
@for i in $(MAKEFILES); do \
|
||||
echo "-----------------------------------------------------------"; \
|
||||
$(MAKE) -C `dirname $$i` || exit 1; \
|
||||
done;
|
||||
|
||||
clean:
|
||||
@rm -f *.bz2
|
||||
@for i in $(SUBDIRS); do \
|
||||
if test -e $$i/Makefile ; then \
|
||||
$(MAKE) -C $$i clean || { exit 1;} \
|
||||
fi; \
|
||||
@for i in $(MAKEFILES); do \
|
||||
$(MAKE) -C `dirname $$i` clean || exit 1; \
|
||||
done;
|
||||
|
||||
install:
|
||||
@rm -f *.bz2
|
||||
@for i in $(SUBDIRS); do \
|
||||
if test -e $$i/Makefile ; then \
|
||||
$(MAKE) -C $$i install || { exit 1;} \
|
||||
fi; \
|
||||
@for i in $(MAKEFILES); do \
|
||||
$(MAKE) -C `dirname $$i` install || exit 1; \
|
||||
done;
|
|
@ -1,22 +1,12 @@
|
|||
SUBDIRS:= `ls | egrep -v '^(\.svn)$$'`
|
||||
|
||||
DATESTRING := $(shell date +%Y)$(shell date +%m)$(shell date +%d)
|
||||
MAKEFILES := $(shell find . -mindepth 2 -maxdepth 2 -name Makefile)
|
||||
|
||||
all:
|
||||
@for i in $(SUBDIRS); do \
|
||||
if test -e $$i/Makefile ; then \
|
||||
echo "-----------------------------------------------------------";\
|
||||
$(MAKE) -C $$i || { exit 1;} \
|
||||
fi; \
|
||||
@for i in $(MAKEFILES); do \
|
||||
echo "-----------------------------------------------------------"; \
|
||||
$(MAKE) -C `dirname $$i` || exit 1; \
|
||||
done;
|
||||
|
||||
clean:
|
||||
@rm -f *.bz2
|
||||
@for i in $(SUBDIRS); do \
|
||||
if test -e $$i/Makefile ; then \
|
||||
$(MAKE) -C $$i clean || { exit 1;} \
|
||||
fi; \
|
||||
done;
|
||||
|
||||
dist: clean
|
||||
@tar --exclude=.svn -cvjf wii-examples-$(DATESTRING).tar.bz2 *
|
||||
@for i in $(MAKEFILES); do \
|
||||
$(MAKE) -C `dirname $$i` clean || exit 1; \
|
||||
done;
|
Loading…
Reference in a new issue