aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b8fc02b..6b935bf 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,11 @@
+SOURCES := $(shell find . -name '*.rs')
+DEPENDENCIES := Cargo.toml
+DEBUG_PRODUCT := target/debug/git-todo
+
+
.PHONY: test
-test: target/debug/git-todo
+test: $(DEBUG_PRODUCT)
prove -v -I./t
-target/debug/git-todo:
+$(DEBUG_PRODUCT): $(SOURCES) $(DEPENDENCIES)
cargo build