1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

Make tests depend on their corresponding binary.

This commit is contained in:
Huon Wilson 2013-11-11 21:04:56 +11:00
parent 087cfbd0c6
commit 2db4ff2d46

View file

@ -22,7 +22,7 @@ endef
# Test exe built rules
define TEST_BUILD
test_$(1): tmp/$(1)_test
test_$(1): tmp/$(1)_test build/$(1)
$(call command,tmp/$(1)_test)
tmp/$(1)_test: $(1)/test.rs
@ -49,4 +49,3 @@ $(foreach exe,$(EXES),$(eval $(call EXE_BUILD,$(exe))))
$(foreach test,$(TESTS),$(eval $(call TEST_BUILD,$(test))))
.PHONY: all test clean