# HG changeset patch # User Oleksandr Gavenko # Date 1326319992 -7200 # Node ID 1b2cf5b2b46c17c19cf94a92eb50f913a4b31446 # Parent 15f00e7ca27b0b7589651c4b3db27049663ba7a5 Add target that print statistics about word count. diff -r 15f00e7ca27b -r 1b2cf5b2b46c Makefile --- a/Makefile Tue Jan 10 22:37:00 2012 +0200 +++ b/Makefile Thu Jan 12 00:13:12 2012 +0200 @@ -114,6 +114,19 @@ $(RST2HTML) --stylesheet=rst.css $*.rst $@ ################################################################ +# Statistics targets. + +.PHONY: stat +stat: + total=0; \ + for dic in *.dict-c5; do \ + cnt=`grep '^_____' $$dic | wc -l`; \ + echo $$dic 'has ' $$cnt words.; \ + total=$$(($$total + $$cnt)); \ + done; \ + echo Total words count is $$total. + +################################################################ # Clean targets. .PHONY: distclean