diff options
author | Simon Josefsson <simon@josefsson.org> | 2006-03-01 10:01:11 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2006-03-01 10:01:11 +0000 |
commit | 779b95502ab0230b88d5cd4ede4d84a9a827c3be (patch) | |
tree | 6d42caee0b7e75adfa0f813b57a7c384c0e17ec5 /maint.mk | |
parent | 29b6feb2284f08803a74b6e2fddb3d1d0f3388cd (diff) | |
download | gnutls-779b95502ab0230b88d5cd4ede4d84a9a827c3be.tar.gz |
Update.
Diffstat (limited to 'maint.mk')
-rw-r--r-- | maint.mk | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) |