From d041d62d09afe859fc62a759541141826897a429 Mon Sep 17 00:00:00 2001 From: Julian Ganz Date: Sun, 18 Sep 2016 11:45:59 +0200 Subject: [PATCH] Replace invocation of "find" with test for a Makefile --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2ae6a9f7..a2cc3059 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,9 @@ $(TARGETS): %: .FORCE $(BIN_TARGET_TESTS): %-test: % .FORCE @$(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 @$(ECHO) "\t[RELEASE]:\t$(subst -release,,$@)"