-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (30 loc) · 1.07 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
build: listings/generated
rm -f main.pdf
make main.pdf
exiftool \
-Title="Defense: The Conversion of Source Code to Machine Code" \
-Author="Silas Groh, Mik Müller" \
-Subject="Compiler Construction" \
-Keywords="compiler, compiler construction, programming language" \
-overwrite_original \
main.pdf
main.pdf: main.tex deps preamble lirstings.json
latexmk -lualatex -shell-escape -g main.tex
listings/generated: rush_build.py deps/rush deps/paper listings/incompatible_types.rush listings/invalid_main_fn.rush listings/unused_var.rush
cd deps/paper && mkdir -p listings/generated && python3 rush_build.py build && cd ..
mkdir -p ./listings/generated/
python3 rush_build.py build
check: rush_build.py listings deps
mkdir -p ./listings/generated/
python3 rush_build.py check
python3 rush_build.py used
init: fetch_deps.sh
sh fetch_deps.sh
mkdir -p ./deps/paper/deps
cp -fr ./deps/rush ./deps/paper/deps/rush
cargo install --git https://github.com/rush-rs/lirstings --force
clean:
eztex c
rm -f lirstings.cache.json
rm -f tokei.cache.json
rm -rf listings/generated