--- a/Makefile Fri Mar 03 14:50:57 2017 +0200
+++ b/Makefile Fri Mar 03 16:13:37 2017 +0200
@@ -146,6 +146,8 @@
SRS_TAB_FILES := $(patsubst %.gadict,dist/srs/%.tab.txt,$(GADICT_FILES))
SRS_ANKI_FILES := $(patsubst %.gadict,dist/anki/%.apkg,$(GADICT_FILES))
+DICT_HTML_FILES := $(patsubst %.gadict,dist/html/%.html,$(GADICT_FILES))
+
RST_TMPL_FILE = dist/misc/rst.tmpl
RST_CSS_FILE = www/tmpl/rst.css
@@ -598,6 +600,15 @@
dist/anki/ dist/srs/:
mkdir -p $@
+.PHONY: html
+html: $(DICT_HTML_FILES)
+
+dist/html/%.html: %.gadict py/gadict.py py/gadict_html.py $(FREQLIST_DEP) $(MAKEFILE_LIST) | dist/html/
+ python3 -B py/gadict_html.py $(FREQLIST_OPT) $< $@
+
+dist/html/:
+ mkdir -p $@
+
################################################################
# Documentation targets.