diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-03-17 09:59:55 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-03-20 03:07:23 +0000 |
commit | d327a0d468e5b5cfb05bb56621fb22d156ce3a40 (patch) | |
tree | f23687e619eff513522c493ed76dff85f0d2bd31 /pkg.mk | |
parent | ee9e7886d9101a6376d268a931c645026e9f6b0f (diff) | |
download | rainbows-d327a0d468e5b5cfb05bb56621fb22d156ce3a40.tar.gz |
Diffstat (limited to 'pkg.mk')
-rw-r--r-- | pkg.mk | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |