-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 1.28 KB
/
Makefile
File metadata and controls
29 lines (21 loc) · 1.28 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
FILENAME=vonLaszewski-pi-cluster-case
MARKDOWN-OPTIONS=--verbose --filter pandoc-fignos -f markdown+header_attributes -f markdown+smart -f markdown+emoji --indented-code-classes=bash,python,yaml
CSL=--csl=template/ieee-with-url.csl
FORMAT=--from markdown --toc --number-sections -V "numbersections=true" --listings
FONTS=--epub-embed-font='fonts/*.ttf'
BIB=--bibliography=references.bib
CSS=--css=template/epub.css
RESOURCE=--resource-path=.
all: epub pdf
date:
bin/date.py > version.md
pdf:
@echo "###############################################################################"
@echo "# create" $(FILENAME).pdf
@echo "###############################################################################"
pandoc $(RESOURCE) $(MARKDOWN-OPTIONS) $(FORMAT) $(FONTS) $(BIB) $(CSL) $(CSS) title.md version.md README.md -o $(FILENAME).pdf --from markdown --template "template/eisvogel.latex" --toc -V "numbersections=true" --listings
epub: date
@echo "###############################################################################"
@echo "# create" $(FILENAME).epub
@echo "###############################################################################"
pandoc $(RESOURCE) $(MARKDOWN-OPTIONS) $(FORMAT) $(FONTS) $(BIB) $(CSL) $(CSS) -o $(FILENAME).epub metadata.txt title.md version.md README.md