-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (27 loc) · 961 Bytes
/
Makefile
File metadata and controls
38 lines (27 loc) · 961 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
37
agda_latex_dir = latex-agda
agda_files = Common.lagda lib.lagda lc.lagda main.lagda systemF.agda lcsig.lagda
agda_latex_files= $(agda_files:%.lagda=$(agda_latex_dir)/%.tex)
long_paper = paper-with-appendices
popl_paper = popl-paper
.PHONY: all agdatex popl
$(agda_latex_dir)/%.tex: %.lagda
agda --latex --latex-dir=$(agda_latex_dir) $<
all: draft.pdf
agdatex: $(agda_latex_files)
draft.pdf: draft.lyx core.lyx jfp.layout common-preamble.tex ebutf8.sty $(agda_latex_files)
lyx --export pdf2 draft.lyx
draft.tex: draft.lyx core.lyx common-preamble.tex ebutf8.sty $(agda_latex_files)
lyx --export pdflatex draft.lyx -f all
$(long_paper).pdf: draft.pdf
cp $< $@
#
$(popl_paper).pdf: draft.pdf
pdftk $< cat 1-26 output $@
index.html: README.md
pandoc -f markdown $< > $@
#
supplemental-material.zip: $(agda_files) index.html
# supplemental-material.zip: $(agda_files) README.md
rm -f $@
zip $@ $^
popl: $(popl_paper).pdf supplemental-material.zip