Mercurial > MadButterfly
comparison Makefile @ 136:9af23d9584d8
Using $(MAKE) instead of make
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 19 Sep 2008 09:46:54 +0800 |
parents | 4d2e28188460 |
children |
comparison
equal
deleted
inserted
replaced
135:81c03fdd94d0 | 136:9af23d9584d8 |
---|---|
1 SUBDIRS= src tools | 1 SUBDIRS= src tools |
2 | 2 |
3 all: | 3 all: |
4 .for i in $(SUBDIRS) | 4 .for i in $(SUBDIRS) |
5 @echo "==> Enter subdirectory $(i)" | 5 @echo "==> Enter subdirectory $(i)" |
6 @cd ${i}; make $@ | 6 @cd ${i}; $(MAKE) $@ |
7 @echo "<== Leave subdirectory $(i)" | 7 @echo "<== Leave subdirectory $(i)" |
8 .endfor | 8 .endfor |
9 | 9 |
10 install: | 10 install: |
11 .for i in $(SUBDIRS) | 11 .for i in $(SUBDIRS) |
12 @echo "==> Enter subdirectory $(i)" | 12 @echo "==> Enter subdirectory $(i)" |
13 @cd ${i}; make $@ | 13 @cd ${i}; $(MAKE) $@ |
14 @echo "<== Leave subdirectory $(i)" | 14 @echo "<== Leave subdirectory $(i)" |
15 .endfor | 15 .endfor |
16 | 16 |
17 clean: | 17 clean: |
18 .for i in $(SUBDIRS) | 18 .for i in $(SUBDIRS) |
19 @echo "==> Enter subdirectory $(i)" | 19 @echo "==> Enter subdirectory $(i)" |
20 @cd ${i}; make $@ | 20 @cd ${i}; $(MAKE) $@ |
21 @echo "<== Leave subdirectory $(i)" | 21 @echo "<== Leave subdirectory $(i)" |
22 .endfor | 22 .endfor |