about summary refs log tree commit homepage
path: root/pkg.mk
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-03-17 09:59:55 +0000
committerEric Wong <normalperson@yhbt.net>2011-03-20 03:07:23 +0000
commitd327a0d468e5b5cfb05bb56621fb22d156ce3a40 (patch)
treef23687e619eff513522c493ed76dff85f0d2bd31 /pkg.mk
parentee9e7886d9101a6376d268a931c645026e9f6b0f (diff)
downloadrainbows-d327a0d468e5b5cfb05bb56621fb22d156ce3a40.tar.gz
Diffstat (limited to 'pkg.mk')
-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