-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (22 loc) · 720 Bytes
/
Makefile
File metadata and controls
31 lines (22 loc) · 720 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
#Makefile for “Harry Potter and the Methods of Rationality
TEXFON :="./xfonts//:"
TEXIN :=".:./pkg//:"
CHAPTERS=$(wildcard chapters/hp-ch*.tex)
IMAGES=$(wildcard fanart/ch*.jpg)
MAIN=hpmor.tex
EXTRA=hp-intro.tex hp-contents.tex hp-colophon.tex memoir-hacks.tex
TEXT=hpatmor.pdf
COVER=cover0.jpg
BOOK=hp.pdf
LATEX=xelatex
#~ OPT := "-halt-on-error"
#OPT="-interaction=batchmode"
OPT := $(OPT) "-output-directory=out"
#$(MAIN) $(EXTRA) $(CHAPTERS) $(COVER) $(IMAGES)
^$(TEXT):
TEXFONTS=$(TEXFON) TEXINPUTS=$(TEXIN) $(LATEX) $(OPT) $(MAIN)
TEXFONTS=$(TEXFON) TEXINPUTS=$(TEXIN) $(LATEX) $(OPT) $(MAIN)
once:
TEXFONTS=$(TEXFON) TEXINPUTS=$(TEXIN) $(LATEX) $(OPT) $(MAIN)
clean:
rm out/hp* out/chapters/hp*