From: Simon Josefsson Date: Wed, 15 Feb 2006 10:42:40 +0000 (+0000) Subject: * build-aux/maint.mk: Add dsyntax-check rule. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a527d16adc47b86d35f16d7ed88a3d64c0bfebd;p=pspp * build-aux/maint.mk: Add dsyntax-check rule. --- diff --git a/ChangeLog b/ChangeLog index bfc4bc617c..8340727e4e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-02-15 Simon Josefsson + + * build-aux/maint.mk: Add dsyntax-check rule. + 2006-02-14 Paul Eggert Sync from coreutils. diff --git a/build-aux/maint.mk b/build-aux/maint.mk index be933983bc..b5ae6d78b9 100644 --- a/build-aux/maint.mk +++ b/build-aux/maint.mk @@ -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 '\&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)