536 @echo ===== BSL ===== |
536 @echo ===== BSL ===== |
537 python3 -B py/gadict_freq.py -b:dist/wordlist/gadict.list +b:wordlist/bsl.var |
537 python3 -B py/gadict_freq.py -b:dist/wordlist/gadict.list +b:wordlist/bsl.var |
538 @echo ===== TSL ===== |
538 @echo ===== TSL ===== |
539 python3 -B py/gadict_freq.py -b:dist/wordlist/gadict.list +b:wordlist/tsl.var |
539 python3 -B py/gadict_freq.py -b:dist/wordlist/gadict.list +b:wordlist/tsl.var |
540 |
540 |
|
541 .PHONY: missing-speakout |
|
542 missing-speakout: dist/wordlist/gadict.list $(FREQ_DEP) $(BUILD_SCRIPTS) |
|
543 @echo ===== so1 ===== |
|
544 python3 -B py/gadict_freq.py -b:dist/wordlist/gadict.list +b:so1.list | tee so1.miss |
|
545 @echo ===== so2 ===== |
|
546 python3 -B py/gadict_freq.py -b:dist/wordlist/gadict.list +b:so2.list | tee so2.miss |
|
547 @echo ===== so3 ===== |
|
548 python3 -B py/gadict_freq.py -b:dist/wordlist/gadict.list +b:so3.list | tee so3.miss |
|
549 @echo ===== so4 ===== |
|
550 python3 -B py/gadict_freq.py -b:dist/wordlist/gadict.list +b:so4.list | tee so4.miss |
|
551 |
541 define stat-cmd |
552 define stat-cmd |
542 { \ |
553 { \ |
543 stat() { \ |
554 stat() { \ |
544 lack=`python3 -B py/gadict_freq.py -b:dist/wordlist/gadict.list $$2:$$3 | wc -l`; \ |
555 lack=`python3 -B py/gadict_freq.py -b:dist/wordlist/gadict.list $$2:$$3 | wc -l`; \ |
545 total=`grep -v '^[ ]' $$3 | wc -l`; \ |
556 total=`grep -v '^[ ]' $$3 | wc -l`; \ |
644 GADICT_DEL_OPT := -delfile=$(GADICT_DEL_FILE) |
655 GADICT_DEL_OPT := -delfile=$(GADICT_DEL_FILE) |
645 endif |
656 endif |
646 |
657 |
647 # Specific rules (due to renames or other customization). |
658 # Specific rules (due to renames or other customization). |
648 dist/anki/gadict.apkg: gadict.gadict $(GADICT_DEL_FILE) py/gadict.py py/gadict_srs_anki.py $(FREQLIST_DEP) $(MAKEFILE_LIST) | dist/anki/ |
659 dist/anki/gadict.apkg: gadict.gadict $(GADICT_DEL_FILE) py/gadict.py py/gadict_srs_anki.py $(FREQLIST_DEP) $(MAKEFILE_LIST) | dist/anki/ |
649 PYTHONPATH=$(ANKI_PY_DIR): LC_ALL=en_US.utf8 python -B py/gadict_srs_anki.py -name="gadict_en-ru+uk" -rich $(GADICT_DEL_OPT) $(FREQLIST_OPT) $< $@ |
660 PYTHONPATH=$(ANKI_PY_DIR): LC_ALL=en_US.utf8 python3 -B py/gadict_srs_anki.py -name="gadict_en-ru+uk" -rich $(GADICT_DEL_OPT) $(FREQLIST_OPT) $< $@ |
650 |
661 |
651 dist/anki/gadict_voa.apkg: gadict_voa.gadict py/gadict.py py/gadict_srs_anki.py $(VOA_FREQLIST_DEP) $(MAKEFILE_LIST) | dist/anki/ |
662 dist/anki/gadict_voa.apkg: gadict_voa.gadict py/gadict.py py/gadict_srs_anki.py $(VOA_FREQLIST_DEP) $(MAKEFILE_LIST) | dist/anki/ |
652 PYTHONPATH=$(ANKI_PY_DIR): LC_ALL=en_US.utf8 python -B py/gadict_srs_anki.py -name="gadict_voa" $(VOA_FREQLIST_OPT) $< $@ |
663 PYTHONPATH=$(ANKI_PY_DIR): LC_ALL=en_US.utf8 python3 -B py/gadict_srs_anki.py -name="gadict_voa" $(VOA_FREQLIST_OPT) $< $@ |
653 |
664 |
654 # General rules. |
665 # General rules. |
655 dist/anki/%.apkg: %.gadict %.del py/gadict.py py/gadict_srs_anki.py $(FREQLIST_DEP) $(MAKEFILE_LIST) | dist/anki/ |
666 dist/anki/%.apkg: %.gadict %.del py/gadict.py py/gadict_srs_anki.py $(FREQLIST_DEP) $(MAKEFILE_LIST) | dist/anki/ |
656 PYTHONPATH=$(ANKI_PY_DIR): LC_ALL=en_US.utf8 python -B py/gadict_srs_anki.py -name=$* -rich -delfile=$*.del $(FREQLIST_OPT) $< $@ |
667 PYTHONPATH=$(ANKI_PY_DIR): LC_ALL=en_US.utf8 python3 -B py/gadict_srs_anki.py -name=$* -rich -delfile=$*.del $(FREQLIST_OPT) $< $@ |
657 |
668 |
658 dist/anki/%.apkg: %.gadict py/gadict.py py/gadict_srs_anki.py $(FREQLIST_DEP) $(MAKEFILE_LIST) | dist/anki/ |
669 dist/anki/%.apkg: %.gadict py/gadict.py py/gadict_srs_anki.py $(FREQLIST_DEP) $(MAKEFILE_LIST) | dist/anki/ |
659 PYTHONPATH=$(ANKI_PY_DIR): LC_ALL=en_US.utf8 python -B py/gadict_srs_anki.py -name=$* -rich $(FREQLIST_OPT) $< $@ |
670 PYTHONPATH=$(ANKI_PY_DIR): LC_ALL=en_US.utf8 python3 -B py/gadict_srs_anki.py -name=$* -rich $(FREQLIST_OPT) $< $@ |
660 |
671 |
661 .PHONY: tab |
672 .PHONY: tab |
662 tab: $(SRS_TAB_FILES) |
673 tab: $(SRS_TAB_FILES) |
663 |
674 |
664 dist/srs/gadict.tab.txt: gadict.gadict py/gadict.py py/gadict_srs_tab.py $(MAKEFILE_LIST) | dist/srs/ |
675 dist/srs/gadict.tab.txt: gadict.gadict py/gadict.py py/gadict_srs_tab.py $(MAKEFILE_LIST) | dist/srs/ |