# HG changeset patch # User Oleksandr Gavenko # Date 1492624385 -10800 # Node ID f5c7e513cbff399ae28d32119553b7cd35099b68 # Parent 366b32e9993ed75fa0d7151fca8eb1b3ff497b46 Removed trick with pattern-specific variables because build fail in some situations. diff -r 366b32e9993e -r f5c7e513cbff Makefile --- a/Makefile Wed Apr 19 20:25:10 2017 +0300 +++ b/Makefile Wed Apr 19 20:53:05 2017 +0300 @@ -507,9 +507,8 @@ @echo ===== TSL ===== python3 -B py/gadict_freq.py -b:dist/wordlist/gadict.list +b:wordlist/tsl.var -.PHONY: missing-stat -missing-stat: dist/wordlist/gadict.list $(FREQ_DEP) $(BUILD_SCRIPTS) - @ { \ +define stat-cmd +{ \ stat() { \ lack=`python3 -B py/gadict_freq.py -b:dist/wordlist/gadict.list $$2:$$3 | wc -l`; \ total=`grep -v '^[ ]' $$3 | wc -l`; \ @@ -527,7 +526,12 @@ stat BSL +b wordlist/bsl.var; \ stat TSL +b wordlist/tsl.var; \ echo " ==== ===== ===== ===="; \ -} $(REDIR) +} +endef + +.PHONY: missing-stat +missing-stat: dist/wordlist/gadict.list $(FREQ_DEP) $(BUILD_SCRIPTS) + @${stat-cmd} dist/wordlist/%.list: %.gadict py/gadict_headwords.py $(BUILD_SCRIPTS) | dist/wordlist/ python3 -B py/gadict_headwords.py $< $@ @@ -707,8 +711,9 @@ cat $(STAT_MISSING_FILE); \ } >$@ -$(STAT_MISSING_FILE): REDIR := >$(STAT_MISSING_FILE) -$(STAT_MISSING_FILE): missing-stat | $(dir $(STAT_MISSING_FILE)) +$(STAT_MISSING_FILE): $(BUILD_SCRIPTS) | $(dir $(STAT_MISSING_FILE)) + @echo '*' make stat + @${stat-cmd} >$(STAT_MISSING_FILE) dist/misc/: mkdir -p $@