Makefile count-lines: let it work on OS-X (-l not --lines), add XXX
authorBrian Warner <warner@lothar.com>
Wed, 9 Nov 2011 18:42:27 +0000 (10:42 -0800)
committerBrian Warner <warner@lothar.com>
Wed, 9 Nov 2011 18:42:27 +0000 (10:42 -0800)
OS-X's simple-minded /usr/bin/wc doesn't understand --lines, but everyone
understands -l .

Makefile

index 0fffb5f493b7f4cf24bd1dd47262b44880e83503..d14634f03e8c4179831c3b0d6bfb5db328353ec9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -148,11 +148,13 @@ check-umids:
 
 count-lines:
        @echo -n "files: "
-       @find src -name '*.py' |grep -v /build/ |wc --lines
+       @find src -name '*.py' |grep -v /build/ |wc -l
        @echo -n "lines: "
-       @cat `find src -name '*.py' |grep -v /build/` |wc --lines
+       @cat `find src -name '*.py' |grep -v /build/` |wc -l
        @echo -n "TODO: "
-       @grep TODO `find src -name '*.py' |grep -v /build/` | wc --lines
+       @grep TODO `find src -name '*.py' |grep -v /build/` | wc -l
+       @echo -n "XXX: "
+       @grep XXX `find src -name '*.py' |grep -v /build/` | wc -l
 
 check-memory: .built
        rm -rf _test_memory