8 all: $(foreach i
,$(DIRS
),build-
$i)
10 test: $(foreach i
,$(TESTDIRS
),test-
$i)
12 bgtest
: $(foreach i
,$(TESTDIRS
),bgtest-
$i)
14 clean: $(foreach i
,$(DIRS
),clean-
$i)
18 $(foreach i
,$(DIRS
),build-
$i):
19 $(MAKE
) -C
$(subst build-
,,$@
) all OPTS
='$(OPTS)'
21 $(foreach i
,$(DIRS
),test-
$i):
22 $(MAKE
) -C
$(subst test-
,,$@
) test OPTS
='$(OPTS)' TESTOPTS
='$(TESTOPTS)'
24 $(foreach i
,$(DIRS
),bgtest-
$i):
25 $(MAKE
) -C
$(subst bgtest-
,,$@
) bgtest OPTS
='$(OPTS)' TESTOPTS
='$(TESTOPTS)'
27 $(foreach i
,$(DIRS
),clean-
$i):
28 $(MAKE
) -C
$(subst clean-
,,$@
) clean OPTS
='$(OPTS)'