-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
Makefile
27 lines (22 loc) · 1.12 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
DATESTRING := $(shell date +%Y)$(shell date +%m)$(shell date +%d)
MAKEFILES := $(shell find . -mindepth 2 -name Makefile)
#---------------------------------------------------------------------------------
all: examples
#---------------------------------------------------------------------------------
@rm -fr bin
@mkdir -p bin
@find . -name "*.3dsx" ! -path "./bin/*" -exec cp -fv {} bin \;
#---------------------------------------------------------------------------------
examples:
#---------------------------------------------------------------------------------
@for i in $(MAKEFILES); do $(MAKE) -C `dirname $$i` || exit 1; done;
#---------------------------------------------------------------------------------
clean:
#---------------------------------------------------------------------------------
@rm -fr bin
@rm -f *.bz2
@for i in $(MAKEFILES); do $(MAKE) -C `dirname $$i` clean || exit 1; done;
#---------------------------------------------------------------------------------
dist: clean
#---------------------------------------------------------------------------------
@tar -cvjf 3ds-examples-$(DATESTRING).tar.bz2 *