forked from llsoftsec/llsoftsecbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 761 Bytes
/
Makefile
File metadata and controls
32 lines (25 loc) · 761 Bytes
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
# SPDX-License-Identifier: CC-BY-4.0
# SPDX-FileCopyrightText: © 2021 Arm Limited <kristof.beyls@arm.com>
PANDOCFLAGS = \
--table-of-contents \
--number-sections \
--standalone
.PHONY: all clean pdf html
all: pdf html
pdf: build/book.pdf
html: build/book.html build/default.css
clean:
rm -rf build
build:
mkdir build
build/default.css: default.css Makefile
cp default.css build/default.css
build/book.html: book.md book.bib Makefile build
pandoc $< -t html --filter pandoc-citeproc \
-M css=default.css \
-o $@ $(PANDOCFLAGS)
build/book.tex: book.md book.bib Makefile build
pandoc $< -t latex --filter pandoc-citeproc -o $@ $(PANDOCFLAGS)
build/book.pdf: build/book.tex Makefile build
cd build && \
latexmk -pdf book.tex