]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Makefile: count-lines: ignore build/* files, also add total number of .py files
authorBrian Warner <warner@allmydata.com>
Wed, 31 Jan 2007 01:10:37 +0000 (18:10 -0700)
committerBrian Warner <warner@allmydata.com>
Wed, 31 Jan 2007 01:10:37 +0000 (18:10 -0700)
Makefile

index 265091663cece42ccd1c2b2c4854135bd42e8067..1f3bd406d8bac9d8ea4c9037b1625143c88c2d19 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -60,10 +60,12 @@ pyflakes:
        pyflakes src/allmydata
 
 count-lines:
+       @echo -n "files: "
+       @find src -name '*.py' |grep -v /build/ |wc --lines
        @echo -n "lines: "
-       @cat `find src -name '*.py'` |wc --lines
+       @cat `find src -name '*.py' |grep -v /build/` |wc --lines
        @echo -n "TODO: "
-       @grep TODO `find src -name '*.py'` | wc --lines
+       @grep TODO `find src -name '*.py' |grep -v /build/` | wc --lines
 
 clean:
        rm -rf build