--- a/Makefile Sat Aug 27 14:03:30 2016 +0300
+++ b/Makefile Sat Aug 27 14:32:25 2016 +0300
@@ -142,6 +142,8 @@
DICTDZ_FILES := $(C5_FILES:.c5=.dict.dz)
INDEX_FILES := $(C5_FILES:.c5=.index)
+SRS_TAB_FILES := $(patsubst %.gadict,dist/srs/%.tab.txt,$(GADICT_FILES))
+
RST_TMPL_FILE = dist/misc/rst.tmpl
RST_CSS_FILE = www/tmpl/rst.css
@@ -387,6 +389,18 @@
dist/dictd/:
mkdir -p $@
+.PHONY: srs
+srs: $(SRS_TAB_FILES)
+
+dist/srs/gadict_en-ru+uk.tab.txt: gadict_en-ru+uk.gadict py/gadict.py py/gadict_srs_tab.py $(MAKEFILE_LIST) | dist/srs/
+ python3 -B py/gadict_srs_tab.py $< $@ ru,uk
+
+dist/srs/gadict_voa.tab.txt: gadict_voa.gadict py/gadict.py py/gadict_srs_tab.py $(MAKEFILE_LIST) | dist/srs/
+ python3 -B py/gadict_srs_tab.py $< $@
+
+dist/srs/:
+ mkdir -p $@
+
################################################################
# Install/uninstall targets.