-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
25 lines (17 loc) · 1.36 KB
/
Makefile
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
MDFILES := $(wildcard ??-*.markdown)
IMGFILES := $(wildcard images/*)
# Override with pandoc executable if building without docker
PANDOC ?= docker run --rm -it -u `id -u`:`id -g` -v ${PWD}:/data openacc/best-practices-guide:latest
openacc-guide.pdf: ${MDFILES} ${IMGFILES}
${PANDOC} -f markdown+implicit_figures -s -o openacc-guide.pdf ??-*.markdown --citeproc --highlight-style pygments --top-level-division=chapter -V geometry:letterpaper -H cover-page/main.tex --pdf-engine=xelatex
openacc-guide.tex: ${MDFILES}
${PANDOC} -f markdown+implicit_figures -s -o openacc-guide.tex ??-*.markdown --citeproc --highlight-style pygments --top-level-division=chapter
openacc-guide.html: ${MDFILES}
${PANDOC} -f markdown+implicit_figures -s -o openacc-guide.html ??-*.markdown --top-level-division=chapter --toc --toc-depth=2 -V geometry:margin=1in --citeproc -V documentclass:book -V classoption:oneside --highlight-style pygments
openacc-guide.doc: ${MDFILES} ${IMGFILES}
${PANDOC} -f markdown+implicit_figures -s -o openacc-guide.doc ??-*.markdown --top-level-division=chapter --toc --toc-depth=2 -V geometry:margin=1in --citeproc
outline.pdf: outline.markdown
${PANDOC} outline.markdown -o outline.pdf -V geometry:margin=1in
all: openacc-guide.pdf
clean:
-rm -rf outline.pdf openacc-guide.pdf openacc-guide.doc openacc-guide.tex openacc-guide.html openacc-guide.rst outline.pdf _build