casio_doc/Makefile

27 lines
493 B
Makefile

MDS=casio_charset_table.md casio_encoding_tutorial.md
HTMLS=$(MDS:.md=.html)
CSS=github-pandoc.css custom.css
all: $(MDS) $(HTMLS)
%.html: %.md $(CSS)
pandoc $< $(patsubst %,-c %, $(CSS)) -H reload_img_onerror.html -o $@
casio_charset_table.md: reload_img_onerror.html $(CSS)
cd util; python3 generate_charset_imgs.py
cd util; python3 generate_charset_table.py >../casio_charset_table.md
%.css:
clean:
rm -fv $(HTMLS)
rm -fv casio_charset_table.md
rm -frv casio_charset/