about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-03-17 21:19:54 +0000
committerEric Wong <normalperson@yhbt.net>2011-03-17 14:21:06 -0700
commit2bedfbb15638564432521ebe81c48ce8fded2c3d (patch)
treee06f98eb1166f822f26833b4aa535f78227f142b
parentfd12391c2858bb847031de85ce16ff35b0b48c64 (diff)
downloadkcar-2bedfbb15638564432521ebe81c48ce8fded2c3d.tar.gz
-rw-r--r--pkg.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg.mk b/pkg.mk
index 487733a..8f3dafe 100644
--- a/pkg.mk
+++ b/pkg.mk
@@ -167,5 +167,9 @@ doc_gz: docs = $(shell find doc -type f ! -regex '^.*\.\(gif\|jpg\|png\|gz\)$$')
 doc_gz:
         for i in $(docs); do \
           gzip --rsyncable -9 < $$i > $$i.gz; touch -r $$i $$i.gz; done
+check-warnings:
+        @(for i in $$(git ls-files '*.rb'|grep -v '^setup\.rb$$'); \
+          do $(RUBY) -d -W2 -c $$i; done) | grep -v '^Syntax OK$$' || :
 
 .PHONY: all .FORCE-GIT-VERSION-FILE doc test $(test_units) manifest
+.PHONY: check-warnings