Make the binary tests depend on the binaries

This commit is contained in:
Julian Ganz 2016-09-17 20:56:12 +02:00 committed by Matthias Beyer
parent 0ff53a6925
commit f6dc039554

View file

@ -72,7 +72,7 @@ $(TARGETS): %: .FORCE
@$(ECHO) "\t[CARGO ]:\t$@" @$(ECHO) "\t[CARGO ]:\t$@"
@$(CARGO) build --manifest-path ./$@/Cargo.toml @$(CARGO) build --manifest-path ./$@/Cargo.toml
$(BIN_TARGET_TESTS): %: .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 {} \; find $(subst -test,,$@) -name "tests" -type d -exec $(MAKE) -j 1 -C {} \;