--- a/Makefile Sun Mar 27 23:59:21 2016 +0300
+++ b/Makefile Mon Mar 28 00:31:52 2016 +0300
@@ -315,14 +315,16 @@
dict: $(DICTDZ_FILES) $(INDEX_FILES)
# --case-sensitive
-# -u "`sed -n '\|http://[[:print:]]\+/|{s=^.*\(http://\)=\1=;p;q;}' $<`"
-# -s "`sed -n '/^ABOUT: /{s=ABOUT: ==;p;q;}' $<`"
-dist/dictd/%.dict dist/dictd/%.index: dist/dictd/%.c5
- (cd dist/dictd; dictfmt -c5 --headword-separator '; ' --break-headwords --utf8 --allchars $*) < $<
+dist/dictd/%.dict dist/dictd/%.index: dist/dictd/%.c5 dist/dictd/%.c5.name dist/dictd/%.c5.url $(MAKEFILE_LIST)
+ (cd dist/dictd; dictfmt -c5 --headword-separator '; ' --break-headwords --utf8 --allchars -s "`cat $*.c5.name`" -u "`cat $*.c5.url`" $*) < $<
dist/dictd/%.dict.dz: dist/dictd/%.dict
dictzip -c $< >$@
+
+dist/dictd/%.c5.name dist/dictd/%.c5.url: dist/dictd/%.c5
+ :
+
# -B suppress __pycache__ dir
dist/dictd/%.c5: %.gadict py/gadict.py py/gadict_c5.py | dist/dictd
python3 -B py/gadict_c5.py $< $@