view docs/makefile @ 5660:9d6c3e227455 stable

test2rst: use python3 Seems to just work, no porting necessary. To sanity-check the script, I've used some non-ascii symbols in the .t files (utf-8) and things worked fine.
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 09 Nov 2020 23:10:06 +0800
parents 398a3f0ca07a
children 5affbb44f135
line wrap: on
line source

SPHINXBUILD ?= sphinx-build

.PHONY: all
all: tutorials/tutorial.rst tutorials/topic-tutorial.rst static/logo-evolve.ico
	$(SPHINXBUILD) . ../html/

tutorials/tutorial.rst: tutorials/tutorial.t test2rst.py
	python3 test2rst.py $<

tutorials/topic-tutorial.rst: tutorials/topic-tutorial.t test2rst.py
	python3 test2rst.py $<

static/logo-evolve.ico: static/logo-evolve.svg
	convert -resize 36x36 $< $@

.PHONY: clean
clean:
	rm -rf ../html
	rm -f static/logo-evolve.ico
	rm -f tutorials/tutorial.rst
	rm -f tutorials/topic-tutorial.rst