-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
37 lines (25 loc) · 792 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
35
36
37
NAME := tbd
TEX := tex/preamble-custom.tex tex/acknowledgments.tex tex/abstract.tex tex/ch01.tex tex/ch02.tex tex/ch03.tex tex/ch04.tex tex/ch05.tex
BIB := refs.bib
CLS := ucetd.cls
all: pdf
pdf: $(NAME).pdf
html: $(NAME).html
docx: $(NAME).docx
## Build paper
$(NAME).pdf: $(NAME).tex $(TEX) $(BIB) $(CLS)
python code/format-bibtex.py $(BIB)
pdflatex $(NAME)
bibtex $(NAME)
pdflatex $(NAME)
pdflatex $(NAME)
$(NAME).html: $(NAME).tex $(TEX) $(BIB) $(CLS)
pandoc $< --to html --output $@ --standalone --section-divs --toc --mathjax
$(NAME).docx: $(NAME).tex $(TEX) $(BIB) $(CLS)
pandoc $< --to docx --output $@
## Miscellaneous
.PHONY: clean clean-deep
clean:
rm -f *~ *.aux *.blg *.bbl *.lof *.log *.lot *.out *.toc
clean-deep: clean
rm -f *.pdf *.docx *.html tex/*.aux