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:
parent
087cfbd0c6
commit
2db4ff2d46
1 changed files with 1 additions and 2 deletions
3
Makefile
3
Makefile
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue