summaryrefslogtreecommitdiff
path: root/Makefile.maint
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-03-01 11:00:12 +0100
committerJim Meyering <jim@meyering.net>2007-03-01 11:00:12 +0100
commit5703f662b72f03b8a88bfc5cc5ee084988a88ce1 (patch)
tree894ff0c4be70d3e8fd437f491883afcfea760e7c /Makefile.maint
parentb3b6f52fadfbab0277153b9142251989e8e635d4 (diff)
downloadcoreutils-5703f662b72f03b8a88bfc5cc5ee084988a88ce1.tar.xz
"make syntax-check" now runs only Makefile.cfg-selected tests
* Makefile.maint (syntax-check-rules): Hoist this definition so that it precedes the indirect use in the definition of $(local-check). (local-check): Use :=, not just "=". (syntax-check): Depend on $(local-check), not $(syntax-check-rules).
Diffstat (limited to 'Makefile.maint')
-rw-r--r--Makefile.maint12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile.maint b/Makefile.maint
index b1202b540..7d164c509 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -69,6 +69,10 @@ export LC_ALL = C
# in system.h. E.g. today I removed from tail.c a useless definition of
# ENOSYS. It was useless because system.h ensures it's defined.
+# Collect the names of rules starting with `sc_'.
+syntax-check-rules := $(shell sed -n 's/^\(sc_[a-zA-Z0-9_-]*\):.*/\1/p' $(ME))
+.PHONY: $(syntax-check-rules)
+
# Checks that don't require cvs.
# Run `changelog-check' last, as previous test may reveal problems requiring
# new ChangeLog entries.
@@ -79,13 +83,9 @@ local-checks-available = \
makefile-check check-AUTHORS
.PHONY: $(local-checks-available)
-local-check = $(filter-out $(local-checks-to-skip), $(local-checks-available))
-
-# Collect the names of rules starting with `sc_'.
-syntax-check-rules := $(shell sed -n 's/^\(sc_[a-zA-Z0-9_-]*\):.*/\1/p' $(ME))
-.PHONY: $(syntax-check-rules)
+local-check := $(filter-out $(local-checks-to-skip), $(local-checks-available))
-syntax-check: $(syntax-check-rules)
+syntax-check: $(local-check)
# @grep -nE '# *include <(limits|std(def|arg|bool))\.h>' \
# $$(find -type f -name '*.[chly]') && \
# { echo '$(ME): found conditional include' 1>&2; \