forked from teaxyz/white-paper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (28 loc) · 741 Bytes
/
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
26
27
28
29
30
31
32
33
34
.PHONY: all
.PHONY: i18n
.PHONY: clean
translations := $(patsubst i18n/%/white-paper.md,tea.white-paper_%.pdf,$(wildcard i18n/*/white-paper.md))
all: tea.white-paper.pdf $(translations)
tea.white-paper.pdf: white-paper.md metadata.yml tea.csl img/*
pandoc \
--number-sections \
--output $@ \
--metadata-file metadata.yml \
--filter pandoc-crossref \
--csl=tea.csl \
--citeproc \
$<
i18n: $(translations)
tea.white-paper_%.pdf: i18n/%/white-paper.md i18n/%/metadata.yml tea.csl img/*
pandoc \
--number-sections \
--output $@ \
--metadata-file i18n/$*/metadata.yml \
--filter pandoc-crossref \
--csl=tea.csl \
--citeproc \
--pdf-engine=xelatex \
--variable mainfont="Noto Serif" \
$<
clean:
rm -f tea.white-paper*.pdf