bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] maint.mk: mark syntax-check sc_*.m rules as .PHONY


From: Jim Meyering
Subject: [PATCH] maint.mk: mark syntax-check sc_*.m rules as .PHONY
Date: Mon, 15 Feb 2010 11:05:54 +0100

FYI,

>From 46f482ed7eed0b034b88c0f6b8a546f668d20321 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Mon, 15 Feb 2010 11:04:56 +0100
Subject: [PATCH] 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.
---
 ChangeLog    |    6 ++++++
 top/maint.mk |    4 +++-
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ce8a8df..1609f87 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-02-15  Jim Meyering  <address@hidden>
+
+       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  <address@hidden>

        maint.mk: prohibit inclusion of "hash-pjw.h" without_use
diff --git a/top/maint.mk b/top/maint.mk
index 128de8b..7d84b6c 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -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))
--
1.7.0.177.gdb1ab




reply via email to

[Prev in Thread] Current Thread [Next in Thread]