Makefile: count-lines: ignore build/* files, also add total number of .py files

This commit is contained in:
Brian Warner 2007-01-30 18:10:37 -07:00
parent c1756780f7
commit fb134d82f9

View File

@ -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