Makefile
changeset 94 1b2cf5b2b46c
parent 85 0ff3715e6176
child 103 b5b1dc62bdc0
--- 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