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:
parent
1f845c7ee5
commit
34b4ba8909
2
rules.mk
2
rules.mk
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue