From 2db4ff2d461e9e0061d643823fb331174baae875 Mon Sep 17 00:00:00 2001 From: Huon Wilson Date: Mon, 11 Nov 2013 21:04:56 +1100 Subject: [PATCH] Make tests depend on their corresponding binary. --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 59c1ad1be..9f68e1a64 100644 --- a/Makefile +++ b/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 -