summaryrefslogtreecommitdiff
path: root/latex/Makefile
blob: 6496eec05a4f80c2dfbaf1db2b72ec47d0b921ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
CONV = pandoc
CONVFLAGS = --from markdown --to html --standalone --template template.html --mathjax=/mathjax/custom-mathjax.min.js

know: $(shell find ./know/concept -mindepth 1 -maxdepth 1 -type d -printf "%p/index.html\\n")
	for file in $^; do \
		mkdir -p ../public/`dirname $$file` ; \
		cp -v $$file ../public/`dirname $$file`/ ; \
	done

know/concept/%/index.html: know/concept/%/source.md template.html main.css
	$(CONV) $(CONVFLAGS) $< -o $@