summaryrefslogtreecommitdiff
path: root/maint.mk
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2006-03-01 10:01:11 +0000
committerSimon Josefsson <simon@josefsson.org>2006-03-01 10:01:11 +0000
commit779b95502ab0230b88d5cd4ede4d84a9a827c3be (patch)
tree6d42caee0b7e75adfa0f813b57a7c384c0e17ec5 /maint.mk
parent29b6feb2284f08803a74b6e2fddb3d1d0f3388cd (diff)
downloadgnutls-779b95502ab0230b88d5cd4ede4d84a9a827c3be.tar.gz
Update.
Diffstat (limited to 'maint.mk')
-rw-r--r--maint.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/maint.mk b/maint.mk
index be933983bc..b5ae6d78b9 100644
--- a/maint.mk
+++ b/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 '\<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)