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