27 lines
1.0 KiB
Makefile
27 lines
1.0 KiB
Makefile
![]() |
SUBDIRS:= $(shell ls | egrep -v '^(CVS)$$')
|
||
|
|
||
|
DATESTRING := $(shell date +%Y)$(shell date +%m)$(shell date +%d)
|
||
|
|
||
|
#---------------------------------------------------------------------------------
|
||
|
all: examples
|
||
|
#---------------------------------------------------------------------------------
|
||
|
@rm -fr bin
|
||
|
@mkdir -p bin
|
||
|
@find . -name "*.3dsx" -exec cp -fv {} bin \;
|
||
|
|
||
|
examples:
|
||
|
@for i in $(SUBDIRS); do if test -e $$i/Makefile ; then $(MAKE) -C $$i || { exit 1;} fi; done;
|
||
|
|
||
|
#---------------------------------------------------------------------------------
|
||
|
clean:
|
||
|
#---------------------------------------------------------------------------------
|
||
|
@rm -fr bin
|
||
|
@rm -f *.bz2
|
||
|
@for i in $(SUBDIRS); do if test -e $$i/Makefile ; then $(MAKE) -C $$i clean || { exit 1;} fi; done;
|
||
|
|
||
|
#---------------------------------------------------------------------------------
|
||
|
dist: clean
|
||
|
#---------------------------------------------------------------------------------
|
||
|
@rm -fr bin
|
||
|
@tar --exclude=.svn --exclude=*CVS* -cvjf 3ds-examples-$(DATESTRING).tar.bz2 *
|