Makefile: add target to count lines of code and TODOs
authorBrian Warner <warner@lothar.com>
Mon, 22 Jan 2007 08:17:39 +0000 (01:17 -0700)
committerBrian Warner <warner@lothar.com>
Mon, 22 Jan 2007 08:17:39 +0000 (01:17 -0700)
Makefile

index 710d593b9f8e45db1288e53c54b96d3319f1f644..6814a5e9a64562c1d08a9664a4013612a7ba3743 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -51,6 +51,12 @@ figleaf-output:
 pyflakes:
        pyflakes src/allmydata
 
+count-lines:
+       @echo -n "lines: "
+       @cat `find src -name '*.py'` |wc --lines
+       @echo -n "TODO: "
+       @grep TODO `find src -name '*.py'` | wc --lines
+
 clean:
        rm -rf build
        rm -f debian