Add a production to count lines of code.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 1 Oct 2012 17:33:06 +0000 (13:33 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 1 Oct 2012 17:33:06 +0000 (13:33 -0400)
Makefile

index 8913ac8d969916fbaa7075b8bf97c7f8bcf1c95d..30ec44b65036c4f68185a2671b67bf41a0973b8d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -41,6 +41,8 @@ pylint:
        @pylint --output-format=parseable $(PYLINTOPTS) irkerd
        @pylint --output-format=parseable $(PYLINTOPTS) irkerhook.py
 
+loc:
+       grep -v "^#" irkerd irkerhook.py | wc -l
 
 SOURCES = README COPYING NEWS BUGS install.txt security.txt hacking.txt \
        irkerd irkerhook.py Makefile irkerd.xml irkerhook.xml