From fb134d82f95d47a76dcbe834e6ce3ccdaf5f38ce Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 30 Jan 2007 18:10:37 -0700 Subject: [PATCH] Makefile: count-lines: ignore build/* files, also add total number of .py files --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 26509166..1f3bd406 100644 --- 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 -- 2.45.2