Skip to content

Commit ea47e59

Browse files
avargitster
authored andcommitted
Makefile: mark "check" target as .PHONY
Fix a bug in 44c9e85 (Fix up header file dependencies and add sparse checking rules, 2005-07-03), we never marked the phony "check" target as such. Perhaps we should just remove it, since as of a combination of 912f998 (Makefile: help people who run 'make check' by mistake, 2008-11-11) 0bcd9ae (sparse: Fix errors due to missing target-specific variables, 2011-04-21) we've been suggesting the user run "make sparse" directly. But under that mode it still does something, as well as directing the user to run "make test" under non-sparse. So let's punt that and narrowly fix the PHONY bug. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ddb1055 commit ea47e59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2925,6 +2925,7 @@ hdr-check: $(HCO)
29252925
style:
29262926
git clang-format --style file --diff --extensions c,h
29272927

2928+
.PHONY: check
29282929
check: config-list.h command-list.h
29292930
@if sparse; \
29302931
then \

0 commit comments

Comments
 (0)