equal
deleted
inserted
replaced
144 INDEX_FILES := $(C5_FILES:.c5=.index) |
144 INDEX_FILES := $(C5_FILES:.c5=.index) |
145 |
145 |
146 SRS_TAB_FILES := $(patsubst %.gadict,dist/srs/%.tab.txt,$(GADICT_FILES)) |
146 SRS_TAB_FILES := $(patsubst %.gadict,dist/srs/%.tab.txt,$(GADICT_FILES)) |
147 SRS_ANKI_FILES := $(patsubst %.gadict,dist/anki/%.apkg,$(GADICT_FILES)) |
147 SRS_ANKI_FILES := $(patsubst %.gadict,dist/anki/%.apkg,$(GADICT_FILES)) |
148 |
148 |
|
149 DICT_HTML_FILES := $(patsubst %.gadict,dist/html/%.html,$(GADICT_FILES)) |
|
150 |
149 RST_TMPL_FILE = dist/misc/rst.tmpl |
151 RST_TMPL_FILE = dist/misc/rst.tmpl |
150 RST_CSS_FILE = www/tmpl/rst.css |
152 RST_CSS_FILE = www/tmpl/rst.css |
151 |
153 |
152 RST_FILES := $(wildcard www/*.rst) |
154 RST_FILES := $(wildcard www/*.rst) |
153 RST_HTML_FILES := $(patsubst www/%.rst,dist/www/%.html,$(RST_FILES)) |
155 RST_HTML_FILES := $(patsubst www/%.rst,dist/www/%.html,$(RST_FILES)) |
594 |
596 |
595 dist/srs/%.tab.txt: %.gadict py/gadict.py py/gadict_srs_tab.py $(MAKEFILE_LIST) | dist/srs/ |
597 dist/srs/%.tab.txt: %.gadict py/gadict.py py/gadict_srs_tab.py $(MAKEFILE_LIST) | dist/srs/ |
596 python3 -B py/gadict_srs_tab.py $< $@ |
598 python3 -B py/gadict_srs_tab.py $< $@ |
597 |
599 |
598 dist/anki/ dist/srs/: |
600 dist/anki/ dist/srs/: |
|
601 mkdir -p $@ |
|
602 |
|
603 .PHONY: html |
|
604 html: $(DICT_HTML_FILES) |
|
605 |
|
606 dist/html/%.html: %.gadict py/gadict.py py/gadict_html.py $(FREQLIST_DEP) $(MAKEFILE_LIST) | dist/html/ |
|
607 python3 -B py/gadict_html.py $(FREQLIST_OPT) $< $@ |
|
608 |
|
609 dist/html/: |
599 mkdir -p $@ |
610 mkdir -p $@ |
600 |
611 |
601 ################################################################ |
612 ################################################################ |
602 # Documentation targets. |
613 # Documentation targets. |
603 |
614 |