-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (34 loc) · 1.07 KB
/
Copy pathMakefile
File metadata and controls
50 lines (34 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
TEX_FOLDER=tex
MD_FOLDER=md
PANDOC_FLAGS=-f markdown -t latex -S
SOURCES=$(shell cd $(MD_FOLDER); ls -1 *.md | cut -d "." -f 1)
%: md/%.md
pandoc $(PANDOC_FLAGS) $^ > $(TEX_FOLDER)/$@.tex
build: pdf bib pdf
pdf: builddir $(SOURCES)
xelatex index.tex
docx: pdf
pandoc -f latex -t docx index.tex -o index.docx
odt: pdf
pandoc -f latex -t odt index.tex -o index.odt
builddir:
mkdir -p $(TEX_FOLDER)
bib:
biber index
clean:
rm -rf $(BUILDDIR)
rm -rf *.lot *.nav *.snm *.vrb *.aux *.bbl *.blg *.log *.lof *.lol *.dvi *.toc *.out *.bak *.mtc0 *.maf *.mtc *.spl *.brf *.run.xml *blx.bib *.glo *.bcf *.fls
pdf-d:
docker run -i -t --rm -v `pwd`:/build rpietzsch/pandocker make pdf
docx-d:
docker run -i -t --rm -v `pwd`:/build rpietzsch/pandocker make docx
odt-d:
docker run -i -t --rm -v `pwd`:/build rpietzsch/pandocker make odt
build-d:
docker run -i -t --rm -v `pwd`:/build rpietzsch/pandocker make build
shell-d:
docker run -i -t --rm -v `pwd`:/build rpietzsch/pandocker bash
bib-d:
docker run -i -t --rm -v `pwd`:/build rpietzsch/pandocker make bib
open:
open index.pdf