bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

maint.mk


From: Simon Josefsson
Subject: maint.mk
Date: Wed, 15 Feb 2006 11:41:47 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Installed.

2006-02-15  Simon Josefsson  <address@hidden>

        * build-aux/maint.mk: Ad dsyntax-check rule.

--- maint.mk    14 Feb 2006 13:50:51 +0100      1.1
+++ maint.mk    15 Feb 2006 11:40:27 +0100      
@@ -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 @@
        @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)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]