view mk/subdir.mk @ 41:81851564f552

The initial description, how_to_repeat, and fix go in the first message. Storing them separately only creates a pile of special cases.
author David A. Holland
date Sun, 15 Jun 2014 17:55:56 -0400
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