maint.mk: mark syntax-check sc_*.m rules as .PHONY
authorJim Meyering <meyering@redhat.com>
Mon, 15 Feb 2010 10:04:56 +0000 (11:04 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 15 Feb 2010 10:04:56 +0000 (11:04 +0100)
* top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
"make -t syntax-check" doesn't create a ton of sc_*.m files.

ChangeLog
top/maint.mk

index ce8a8df..1609f87 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-02-15  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: mark syntax-check sc_*.m rules as .PHONY
+       * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
+       "make -t syntax-check" doesn't create a ton of sc_*.m files.
+
 2010-02-14  Jim Meyering  <meyering@redhat.com>
 
        maint.mk: prohibit inclusion of "hash-pjw.h" without_use
index 128de8b..7d84b6c 100644 (file)
@@ -125,7 +125,9 @@ local-checks-available = \
 
 # Arrange to print the name of each syntax-checking rule just before running it.
 $(syntax-check-rules): %: %.m
-$(patsubst %, %.m, $(syntax-check-rules)):
+sc_m_rules_ = $(patsubst %, %.m, $(syntax-check-rules))
+.PHONY: $(sc_m_rules_)
+$(sc_m_rules_):
        @echo $(patsubst sc_%.m, %, $@)
 
 local-check := $(filter-out $(local-checks-to-skip), $(local-checks-available))