diff --git a/Makefile b/Makefile index d66142738..4d347cd7a 100644 --- a/Makefile +++ b/Makefile @@ -16,13 +16,13 @@ command = sh -c '$(1)' # Main exe build rule define EXE_BUILD -build/$(1): build $(1)/$(1).rs +build/$(1): $(1)/$(1).rs $(call command,$(RUSTC) $(RUSTCFLAGS) -o build/$(1) $(1)/$(1).rs) endef # Test exe built rules define TEST_BUILD -test_$(1): tmp/$(1)_test build/$(1) +test_$(1): tmp/$(1)_test build build/$(1) $(call command,tmp/$(1)_test) tmp/$(1)_test: $(1)/test.rs