]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: teach "make syntax-check" to print each check name as it's run
authorJim Meyering <meyering@redhat.com>
Thu, 29 Jan 2009 09:46:39 +0000 (10:46 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 29 Jan 2009 12:31:28 +0000 (13:31 +0100)
* maint.mk (%.m): New rules to print each syntax-checking rule name,
just before running its commands.
($(syntax-check-rules)): Depend on it.

maint.mk

index 38724c24d0d722b6222bbf4144d005598ebd6873..65cdf5bbc9b8fdce01662b50bff49076a8635081 100644 (file)
--- 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)