diff options
author | Teddy Wing | 2020-10-03 16:12:32 +0200 |
---|---|---|
committer | Teddy Wing | 2020-10-03 16:12:32 +0200 |
commit | bea8ea75c62c2f7c6959f12e1af652aa324827a9 (patch) | |
tree | bae522fd24fbc187543fd54d9589814d1f5aae08 | |
parent | af63ef79f5f2bc770844169580902ff61f54ec98 (diff) | |
download | git-todo-bea8ea75c62c2f7c6959f12e1af652aa324827a9.tar.bz2 |
Makefile: Add prerequisites to `target/debug/git-todo` target
In af63ef79f5f2bc770844169580902ff61f54ec98, I forgot to add
prerequisites, so when the source changed, the debug binary wasn't
rebuilt before running tests.
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |