summaryrefslogtreecommitdiff
path: root/maint.mk
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-01-29 10:46:39 +0100
committerJim Meyering <meyering@redhat.com>2009-01-29 13:31:28 +0100
commit44421c22a3c9aca7b7899b9fa8037d89dddaff20 (patch)
tree3aefb73d61ec3989adfdcdaedc978ca199063b78 /maint.mk
parent61a42e37431928b861e69b236b9d6ad04fafbdc3 (diff)
downloadcoreutils-44421c22a3c9aca7b7899b9fa8037d89dddaff20.tar.xz
maint: teach "make syntax-check" to print each check name as it's run
* maint.mk (%.m): New rules to print each syntax-checking rule name, just before running its commands. ($(syntax-check-rules)): Depend on it.
Diffstat (limited to 'maint.mk')
-rw-r--r--maint.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/maint.mk b/maint.mk
index 38724c24d..65cdf5bbc 100644
--- a/maint.mk
+++ b/maint.mk
@@ -76,6 +76,11 @@ local-checks-available = \
makefile-check check-AUTHORS
.PHONY: $(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)):
+ @echo $(patsubst sc_%.m, %, $@)
+
local-check := $(filter-out $(local-checks-to-skip), $(local-checks-available))
syntax-check: $(local-check)