Add RECURSE_FLAGS_xyz when building a subdirectory

This makes it possible to pass directory-dependent flags,
for example disabling tests in 'somedir' using:

    RECURSE_FLAGS_somedir=      RUN_TESTS=
This commit is contained in:
Christophe de Dinechin 2019-04-01 23:11:00 +02:00
parent 1f845c7ee5
commit 34b4ba8909
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ endif
.recurse: $(SUBDIRS:%=%.recurse)
%.recurse: $(MIQ_ORDERONLY:%=% .hello .prebuild)
+$(PRINT_COMMAND) cd $* && $(MIQ_RECURSE)
+$(PRINT_COMMAND) cd $* && $(MIQ_RECURSE) $(RECURSE_FLAGS_$*)
%.variant:
$(PRINT_VARIANT) $(MAKE) VARIANTS= VARIANT=$* RECURSE=.build .build