* build-aux/maint.mk: Add dsyntax-check rule.
authorSimon Josefsson <simon@josefsson.org>
Wed, 15 Feb 2006 10:42:40 +0000 (10:42 +0000)
committerSimon Josefsson <simon@josefsson.org>
Wed, 15 Feb 2006 10:42:40 +0000 (10:42 +0000)
ChangeLog
build-aux/maint.mk

index bfc4bc617c1b005492c8b08cff7c5cf80b9069c7..8340727e4e53e3e5697390937602cad054fbb269 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-02-15  Simon Josefsson  <jas@extundo.com>
+
+       * build-aux/maint.mk: Add dsyntax-check rule.
+
 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
 
        Sync from coreutils.
index be933983bc9d1b1ab9f1ff5a342c24602a4f0d5f..b5ae6d78b90ab5d91a66f588689c8d2b3dff3249 100644 (file)
@@ -19,6 +19,8 @@
 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 ## 02110-1301, USA.
 
+ME := maint.mk
+
 # List of all C-like source code files that will be tested for
 # stylistic "errors".  You may want to define this to something 
 # more complex in Makefile.cfg.
@@ -42,3 +44,9 @@ sc_cast_of_argument_to_free:
        @grep -nE '\<free *\( *\(' $(C_SOURCES) &&              \
          { echo '$(ME): don'\''t cast free argument' 1>&2;             \
            exit 1; } || :
+
+# 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)
+
+syntax-check: $(syntax-check-rules)