2024-01-12 15:08:12 +01:00
|
|
|
SHELL = /bin/sh
|
|
|
|
|
2024-03-03 23:51:01 +01:00
|
|
|
# ikiwiki
|
2024-02-05 17:45:48 +01:00
|
|
|
.PHONY: all
|
2024-03-17 18:22:45 +01:00
|
|
|
all:
|
|
|
|
rm -f public_html/*.html
|
2024-03-17 17:12:26 +01:00
|
|
|
pandoc lua pandoc/bavbavhaus.net.lua
|
2024-03-03 23:51:01 +01:00
|
|
|
|
2024-01-15 07:07:32 +01:00
|
|
|
# dest
|
2024-03-17 18:22:45 +01:00
|
|
|
.PHONY: dest
|
2024-03-03 23:51:01 +01:00
|
|
|
dest:
|
|
|
|
test -d "dest" || mkdir "dest"
|
|
|
|
|
|
|
|
# docx
|
2024-02-05 17:45:48 +01:00
|
|
|
dest/%.docx: notes/%.md\
|
2024-03-03 23:51:01 +01:00
|
|
|
pandoc/defaults/docx.yaml\
|
2024-02-05 17:45:48 +01:00
|
|
|
pandoc/reference-sl.docx\
|
|
|
|
pandoc/csl/chicago-fullnote-sl.csl\
|
|
|
|
pandoc/filters/pandoc-quotes.lua\
|
|
|
|
pandoc/filters/delink.lua\
|
|
|
|
| dest
|
2024-03-03 23:51:01 +01:00
|
|
|
pandoc --data-dir=pandoc -ddocx -o $@ $<
|
2024-01-12 15:08:12 +01:00
|
|
|
|
2024-03-03 23:51:01 +01:00
|
|
|
# pdf
|
2024-02-05 17:45:48 +01:00
|
|
|
dest/%.pdf: notes/%.md\
|
2024-03-03 23:51:01 +01:00
|
|
|
pandoc/defaults/pdf.yaml\
|
2024-02-05 17:45:48 +01:00
|
|
|
pandoc/csl/chicago-fullnote-sl.csl\
|
|
|
|
| dest
|
2024-03-03 23:51:01 +01:00
|
|
|
pandoc --data-dir=pandoc -dpdf -o $@ $<
|
2024-02-05 17:45:48 +01:00
|
|
|
|
2024-03-03 23:51:01 +01:00
|
|
|
# presentation
|
|
|
|
dest/%.s5.html: notes/%.md\
|
|
|
|
pandoc/defaults/s5.yaml\
|
|
|
|
pandoc/templates/default.s5\
|
|
|
|
pandoc/s5/default/pretty.css\
|
|
|
|
pandoc/s5/default/framing.css\
|
|
|
|
pandoc/csl/chicago-fullnote-sl.csl\
|
|
|
|
pandoc/filters/pandoc-quotes.lua\
|
|
|
|
| dest
|
|
|
|
pandoc --data-dir=pandoc -ds5 -o $@ $<
|