-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathmakefile
47 lines (40 loc) · 1.9 KB
/
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
42
43
44
45
46
47
# agda 2.6.1, jekyll, ghc and google-chrome need to be installed in the system
install : _site/HoTT-UF-Agda.html pdf/all/HoTT-UF-Agda.pdf agda/HoTT-UF-Agda.agda additionally
cp _site/index.html ~/public_html/HoTT-UF-in-Agda-Lecture-Notes/
cp _site/HoTT-UF-Agda.html ~/public_html/HoTT-UF-in-Agda-Lecture-Notes/
cp _site/Universes.html ~/public_html/HoTT-UF-in-Agda-Lecture-Notes/
cp _site/Agda.Primitive.html ~/public_html/HoTT-UF-in-Agda-Lecture-Notes/
cp -r _site/css ~/public_html/HoTT-UF-in-Agda-Lecture-Notes/
cp _site/LICENSE ~/public_html/HoTT-UF-in-Agda-Lecture-Notes/
cp pdf/all/HoTT-UF-Agda.pdf ~/public_html/HoTT-UF-in-Agda-Lecture-Notes/
chmod -R a+r ~/public_html/HoTT-UF-in-Agda-Lecture-Notes/
./additionally
additionally :
touch additionally
chmod +x additionally
_site/HoTT-UF-Agda.html : HoTT-UF-Agda.lagda
$(info )
$(info This will take a couple of minutes...)
$(info )
time agda --html --html-highlight=code HoTT-UF-Agda.lagda
cp html/HoTT-UF-Agda.tex index.md
mv html/HoTT-UF-Agda.tex HoTT-UF-Agda.md
mv html/Universes.tex Universes.md
time agda --html Universes.lagda
mv html/Agda.Primitive.html Agda.Primitive.html
$(info If the following fails you may need to run `bundler update`)
bundle exec jekyll build
pdf/all/HoTT-UF-Agda.pdf : _site/HoTT-UF-Agda.html
$(info )
$(info This will likely give errors which can be ignored...)
$(info )
google-chrome --headless --print-to-pdf="pdf/all/HoTT-UF-Agda-large.pdf" _site/HoTT-UF-Agda.html
ps2pdf pdf/all/HoTT-UF-Agda-large.pdf pdf/all/HoTT-UF-Agda.pdf
agda/HoTT-UF-Agda.agda : HoTT-UF-Agda.lagda
ghc --make illiterator.hs
cat HoTT-UF-Agda.lagda | ./illiterator > agda/HoTT-UF-Agda.agda
cat Universes.lagda | ./illiterator > agda/Universes.agda
clean :
rm -f *.o *.hi HoTT-UF-Agda.md index.md Universes.md Agda.Primitive.html
cleanmore :
rm -f *.agdai *.o *.hi HoTT-UF-Agda.md index.md Universes.md Agda.Primitive.html illiterator