diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | Makefile.maint | 12 |
2 files changed, 14 insertions, 6 deletions
@@ -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 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; \ |