diff options
Diffstat (limited to 'lib/cpluff/libcpluff/Makefile.am')
-rw-r--r-- | lib/cpluff/libcpluff/Makefile.am | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/cpluff/libcpluff/Makefile.am b/lib/cpluff/libcpluff/Makefile.am index 455a5d7f05..a483bfae07 100644 --- a/lib/cpluff/libcpluff/Makefile.am +++ b/lib/cpluff/libcpluff/Makefile.am @@ -60,4 +60,14 @@ dist-hook: refdoc clean-local: rm -rf doc +check-local: + rc=0; \ + find '$(srcdir)' -name '*.c' -print | while read f; do \ + if grep -q -E 'cpi_(debug|warn|error)f?\(.*[^N]_\(' "$$f"; then \ + echo "invalid use of cpi_(debug|warn|error)f? macros in $$f."; \ + rc=1; \ + fi; \ + done; \ + exit $$rc + .PHONY: doc refdoc impldoc |