Replace invocation of "find" with test for a Makefile

This commit is contained in:
Julian Ganz 2016-09-18 11:45:59 +02:00 committed by Matthias Beyer
parent c5d660d3f7
commit d041d62d09

View file

@ -74,7 +74,9 @@ $(TARGETS): %: .FORCE
$(BIN_TARGET_TESTS): %-test: % .FORCE $(BIN_TARGET_TESTS): %-test: % .FORCE
@$(ECHO) "\t[BINTEST]:\t$@" @$(ECHO) "\t[BINTEST]:\t$@"
find $(subst -test,,$@) -name "tests" -type d -exec $(MAKE) -j 1 -C {} \; if [[ -f $(subst -test,,$@)/tests/Makefile ]]; then \
$(MAKE) -C $(subst -test,,$@)/tests || exit 1;\
fi;
$(RELEASE_TARGETS): %: .FORCE $(RELEASE_TARGETS): %: .FORCE
@$(ECHO) "\t[RELEASE]:\t$(subst -release,,$@)" @$(ECHO) "\t[RELEASE]:\t$(subst -release,,$@)"