Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Declare each phony target beside its rule
A list at the end of the file is easy to miss when a target is added or renamed.
Diffstat (limited to '')
-rw-r--r--tests/Makefile9
1 file changed, 5 insertions, 4 deletions
diff --git a/tests/Makefile b/tests/Makefile
index a73ad86..3f2f83e 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -19,14 +19,15 @@ SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
TESTS = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
+.PHONY: all
all: $(TESTS)
+# Each test is named after a file that already exists, so without this make
+# would decide there is nothing to do and run none of them.
+.PHONY: $(TESTS)
$(TESTS):
@'$(SHELL_PATH_SQ)' $@ $(CGIT_TEST_OPTS)
+.PHONY: clean
clean:
$(RM) -r trash results
-
-# Each test is named after a file that already exists, so without this make
-# would decide there is nothing to do and run none of them.
-.PHONY: all $(TESTS) clean