comparison mk/subdir.mk @ 2:5f36d8d69aba

Set up a build framework.
author David A. Holland
date Sun, 19 Feb 2012 18:57:59 -0500
parents
children
comparison
equal deleted inserted replaced
1:5f96b693f41a 2:5f36d8d69aba
1 TARGETS?=all depend install clean distclean
2
3 $(TARGETS): ;
4
5 .for _T in $(TARGETS)
6 .for _D in $(SUBDIRS)
7 .if $(_D) == .WAIT
8 $(_T): .WAIT
9 .else
10 $(_T)-in-$(_D):
11 (cd $(_D) && $(MAKE) $(_T))
12 $(_T): $(_T)-in-$(_D)
13 .endif
14 .endfor
15 .endfor