-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (36 loc) · 1.33 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
build: listings/generated
rm -f main.pdf
make main.pdf
exiftool \
-Title="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 listings preamble content lirstings.json
latexmk -lualatex -shell-escape -g main.tex
init: fetch_deps.sh
sh fetch_deps.sh
cargo install --git https://github.com/rush-rs/lirstings --force
listings/generated: rush_build.py deps/rush listings/fib.rush listings/simple.rush listings/riscv_simple.rush listings/rush_simple_pointer.rush listings/simple_add.rush listings/while_loop.rush listings/simple_scope.rush
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
clean:
eztex c
rm -f lirstings.cache.json
rm -f tokei.cache.json
rm -f CONTRIBUTORS.pdf
contributors: CONTRIBUTORS.tex
latexmk -lualatex -g CONTRIBUTORS.tex
exiftool \
-Title="Contributors: 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 \
CONTRIBUTORS.pdf