-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (20 loc) · 665 Bytes
/
Makefile
File metadata and controls
25 lines (20 loc) · 665 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
docker-pdf: docker-image
docker run -v ./output:/app/output icpc-notebook-template-image:dev && cp ./output/main.pdf ./notebook.pdf && rm -f output/*
.PHONY: docker-pdf
docker-image:
docker build . -t icpc-notebook-template-image:dev
.PHONY: docker-image
pdf: typst
typst compile ./output/main.typ && cp ./output/main.pdf ./notebook.pdf
.PHONY: pdf
typst: compile
cp pdf-generator/*.typ ./output
output/main >> ./output/main.typ
.PHONY: typst
compile: pdf-generator/main.rs
rustc --edition=2021 -O pdf-generator/main.rs -o output/main
.PHONY: compile
clean:
docker image rm -f icpc-notebook-template-image:dev
rm -f notebook.pdf output/*
.PHONY: clean