Mercurial > ~dholland > hg > swallowtail > index.cgi
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mk/subdir.mk Sun Feb 19 18:57:59 2012 -0500 @@ -0,0 +1,15 @@ +TARGETS?=all depend install clean distclean + +$(TARGETS): ; + +.for _T in $(TARGETS) +.for _D in $(SUBDIRS) +.if $(_D) == .WAIT +$(_T): .WAIT +.else +$(_T)-in-$(_D): + (cd $(_D) && $(MAKE) $(_T)) +$(_T): $(_T)-in-$(_D) +.endif +.endfor +.endfor