From b99a423cf077f9ac1cb034b5b7b132f77662c629 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 29 Oct 2026 15:43:47 -1000 Subject: 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. --- tests/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tests/Makefile') 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 -- cgit