Mercurial > MadButterfly
view Makefile @ 140:0de8fd11271e
Use macro to simplify the code.
Many code snippets are repeated annoying. Just because we manipulate
a common structure of data. They are move to macros to make it
simple and meaning.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Tue, 23 Sep 2008 08:28:14 +0800 |
parents | 9af23d9584d8 |
children |
line wrap: on
line source
SUBDIRS= src tools all: .for i in $(SUBDIRS) @echo "==> Enter subdirectory $(i)" @cd ${i}; $(MAKE) $@ @echo "<== Leave subdirectory $(i)" .endfor install: .for i in $(SUBDIRS) @echo "==> Enter subdirectory $(i)" @cd ${i}; $(MAKE) $@ @echo "<== Leave subdirectory $(i)" .endfor clean: .for i in $(SUBDIRS) @echo "==> Enter subdirectory $(i)" @cd ${i}; $(MAKE) $@ @echo "<== Leave subdirectory $(i)" .endfor