Update wiki Makefile

master
Hektor Misplon 2021-08-23 17:08:52 +02:00
parent df74dc85af
commit f3f4fd1ef7
1 changed files with 21 additions and 18 deletions

View File

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