16 all: $(foreach i
,$(DIRS
),build-
$i)
18 test: $(foreach i
,$(TESTDIRS
),test-
$i)
20 bgtest
: $(foreach i
,$(filter $(BGDIRS
),$(TESTDIRS
)),bgtest-
$i)
22 clean: $(foreach i
,$(DIRS
),clean-
$i)
26 $(foreach i
,$(DIRS
),build-
$i):
27 $(MAKE
) -C
$(subst build-
,,$@
) all OPTS
='$(OPTS)'
29 $(foreach i
,$(DIRS
),test-
$i):
30 $(MAKE
) -C
$(subst test-
,,$@
) test OPTS
='$(OPTS)' TESTOPTS
='$(TESTOPTS)'
32 $(foreach i
,$(DIRS
),bgtest-
$i):
33 $(MAKE
) -C
$(subst bgtest-
,,$@
) bgtest OPTS
='$(OPTS)' TESTOPTS
='$(TESTOPTS)'
35 $(foreach i
,$(DIRS
),clean-
$i):
36 $(MAKE
) -C
$(subst clean-
,,$@
) clean OPTS
='$(OPTS)'