view mk/subdir.mk @ 4:4ad503eccb9f

Need a default definition of sed.
author David A. Holland
date Sun, 19 Feb 2012 19:51:01 -0500
parents 5f36d8d69aba
children
line wrap: on
line source

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