-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (32 loc) · 780 Bytes
/
Makefile
File metadata and controls
35 lines (32 loc) · 780 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
33
34
35
all: README.md docs/index.html docs/pandoc-emphasize-code.pdf
README.md: README.src.md docs/template.md Makefile
pandoc \
-s \
--toc \
--template docs/template.md \
-t gfm \
--filter pandoc-emphasize-code \
-o $@ \
$<
docs/pandoc-emphasize-code.pdf: README.src.md docs/header.tex Makefile
mkdir -p docs
pandoc \
-t latex \
-H docs/header.tex \
--toc \
--filter pandoc-emphasize-code \
-o $@ \
$<
docs/index.html: README.src.md Makefile docs/footer.html
mkdir -p docs
pandoc \
-s \
-t html5 \
--toc \
--css 'https://fonts.googleapis.com/css?family=Fira+Sans:400,400i|Fira+Mono:400|Oswald:400,600' \
--css docs.css \
--css syntax-highlighting.css \
--include-after docs/footer.html \
--filter pandoc-emphasize-code \
-o $@ \
$<