dots/.wiki/Makefile

42 lines
837 B
Makefile
Raw Normal View History

entries := $(wildcard *.md)
target=wiki
exports= \
$(entries:.md=.html) \
# $(target).pdf \
VIMWIKI_DIR=/home/h/.wiki
all: $(exports)
%.html:%.md
2021-08-23 17:08:52 +02:00
pandoc \
-f markdown \
-t html5 \
-c pandoc.css \
--pdf-engine=xelatex \
--bibliography $(VIMWIKI_DIR)/references.bib \
--citeproc \
--highlight-style=monochrome \
--resource-path=$(VIMWIKI_DIR)/img/ \
--lua-filter=$(VIMWIKI_DIR)/filters/html-links.lua \
--lua-filter=$(VIMWIKI_DIR)/filters/diagram-generator.lua \
2021-08-23 17:08:52 +02:00
--lua-filter=$(VIMWIKI_DIR)/filters/lilypond.lua \
--mathjax \
2021-12-31 12:45:29 +01:00
--extract-media=img \
2021-08-23 17:08:52 +02:00
--strip-comments \
-s -o $@ $<
$(target).pdf:$(entries)
pandoc \
2021-08-23 17:08:52 +02:00
-f markdown $(entries) \
--pdf-engine=xelatex \
--bibliography $(VIMWIKI_DIR)/references.bib \
2021-08-23 17:08:52 +02:00
--citeproc \
--table-of-contents \
-o $@
2021-08-23 17:08:52 +02:00
clean:
rm -f *.html
# rm wiki.pdf