-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
41 lines (30 loc) · 988 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
38
39
40
41
.PRECIOUS: *.dat .styx/bin/paper
default: Prettiest.pdf
clean:
rm -f *.aux *.ptb *.boxes *.log
.styx/bin/paper .styx/bin/bench: paper/lib/PM.hs
styx cabal install pretty-paper
benchmark-80.dat: .styx/bin/bench
.styx/bin/bench full
benchmark-random.dat: .styx/bin/bench
.styx/bin/bench random
Prettiest.pdf: .styx/bin/paper
styx exec -- paper
styx exec -- pdflatex Prettiest
styx exec -- bibtex Prettiest
styx exec -- paper
styx exec -- pdflatex Prettiest
Prettiest.stack.pdf: benchmark-40.dat benchmark-80.dat paper/PM.hs
stack build
stack exec -- paper
pdflatex Prettiest
bibtex Prettiest
stack exec -- paper
pdflatex Prettiest
blog: blog.html
# %.html: %.org
# pandoc --email-obfuscation=references --smart --standalone --css=home.css --from=org --to=html --output=$@ $<
%.html: %.md
pandoc --email-obfuscation=references --smart --standalone --css=home.css --from=markdown --to=html --output=$@ $<
%.md: %.org
pandoc --from=org --to=markdown --output=$@ $<