summaryrefslogtreecommitdiff
path: root/latex/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'latex/Makefile')
-rw-r--r--latex/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/latex/Makefile b/latex/Makefile
new file mode 100644
index 0000000..590d33d
--- /dev/null
+++ b/latex/Makefile
@@ -0,0 +1,13 @@
+
+CONV = pandoc
+CONVFLAGS = --from markdown --to html --standalone --template template.html --mathjax=/mathjax/tex-svg.js
+
+know: $(shell find ./know/concept -mindepth 1 -maxdepth 1 -type d -printf "%p/index.html\\n")
+ for file in $^; do \
+ mkdir -p ../static/`dirname $$file` ; \
+ cp -v $$file ../static/`dirname $$file`/ ; \
+ done
+
+know/concept/%/index.html: know/concept/%/source.md template.html main.css
+ $(CONV) $(CONVFLAGS) $< -o $@
+