-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (29 loc) · 934 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (29 loc) · 934 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
36
SHELL := /bin/bash
TITLE := When Faith Becomes Law: Christianity, Political Power, and the Limits of Religious Authority
AUTHOR := Joshua Viles
OUTPUT_DIR := output
PDF_NAME ?= main.pdf
.PHONY: all validate pdf clean
all: validate pdf
validate:
python3 tools/validate_article.py
pdf: $(OUTPUT_DIR)/$(PDF_NAME)
$(OUTPUT_DIR)/$(PDF_NAME): main.md references.bib
mkdir -p $(OUTPUT_DIR)
pandoc main.md \
-o "$@" \
--from=markdown+raw_tex \
--standalone \
--pdf-engine=xelatex \
--filter pandoc-citeproc \
--bibliography=references.bib \
--toc \
--number-sections \
-V geometry:margin=1in \
-V classoption=titlepage \
-V toc-title:"Table of Contents" \
-V header-includes="\AtEndPreamble{\let\oldtableofcontents\tableofcontents\renewcommand{\tableofcontents}{\oldtableofcontents\clearpage}}" \
--metadata=title:"$(TITLE)" \
--metadata=author:"$(AUTHOR)"
clean:
rm -rf $(OUTPUT_DIR) submission_package