Include VOA in build. Make possible separate Ru/Uk build.
--- a/Makefile Mon Mar 28 01:03:37 2016 +0300
+++ b/Makefile Mon Mar 28 01:11:11 2016 +0300
@@ -134,9 +134,10 @@
PY_FILES := $(wildcard py/gadict*.py)
# GADICT_FILES := $(wildcard *.gadict)
-GADICT_FILES := gadict_en-ru+ua.gadict
+GADICT_FILES := gadict_en-ru+uk.gadict
-C5_FILES := $(patsubst %.gadict,dist/dictd/%.c5,$(GADICT_FILES))
+C5_FILES := dist/dictd/gadict_en-ru+uk.c5 dist/dictd/gadict_voa.c5
+ALL_C5_FILES := $(C5_FILES) dist/dictd/gadict_en-ru.c5 dist/dictd/gadict_en-uk.c5
DICT_FILES := $(C5_FILES:.c5=.dict)
DICTDZ_FILES := $(C5_FILES:.c5=.dict.dz)
INDEX_FILES := $(C5_FILES:.c5=.index)
@@ -326,8 +327,19 @@
:
# -B suppress __pycache__ dir
-dist/dictd/%.c5: %.gadict py/gadict.py py/gadict_c5.py | dist/dictd
- python3 -B py/gadict_c5.py $< $@
+dist/dictd/gadict_en-ru+uk.c5: gadict_en-ru+uk.gadict py/gadict.py py/gadict_c5.py | dist/dictd
+ python3 -B py/gadict_c5.py $< $@
+
+dist/dictd/gadict_en-ru.c5: gadict_en-ru+uk.gadict py/gadict.py py/gadict_c5.py | dist/dictd
+ python3 -B py/gadict_c5.py $< $@ ru
+ echo "gadict En-Ru"> dist/dictd/gadict_en-ru.c5.name
+
+dist/dictd/gadict_en-uk.c5: gadict_en-ru+uk.gadict py/gadict.py py/gadict_c5.py | dist/dictd
+ python3 -B py/gadict_c5.py $< $@ uk
+ echo "gadict En-Uk"> dist/dictd/gadict_en-uk.c5.name
+
+dist/dictd/gadict_voa.c5: gadict_voa.gadict py/gadict.py py/gadict_c5.py | dist/dictd
+ python3 -B py/gadict_c5.py $< $@ en
dist/dictd:
mkdir -p $@