]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
"make syntax-check" now runs only Makefile.cfg-selected tests
authorJim Meyering <jim@meyering.net>
Thu, 1 Mar 2007 10:00:12 +0000 (11:00 +0100)
committerJim Meyering <jim@meyering.net>
Thu, 1 Mar 2007 10:00:12 +0000 (11:00 +0100)
* 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).

ChangeLog
Makefile.maint

index 70d0d403bf1ec810083b9e83cfaf843743aed613..e2d953ab159bd3acb61840748996145a98424b11 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-03-01  Jim Meyering  <jim@meyering.net>
+
+       "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).
+
 2007-02-28  Bruno Haible  <bruno@clisp.org>
 
        * bootstrap.conf (gnulib_modules): Replace xreadlink with
index b1202b540633f9671b724f80a8072be9ad549cdf..7d164c5092e16e6d3181f9d80d9d2dbf54ab9ff4 100644 (file)
@@ -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;               \