-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (19 loc) · 678 Bytes
/
Makefile
File metadata and controls
28 lines (19 loc) · 678 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
TYPST := typst
.PHONY: all clean watch handout flattened present speaker
all: present
%-with-notes.pdf: %.typ
$(TYPST) compile --pdf-standard a-2b --input handout=true $< $@
%-slides-only.pdf: %.typ
$(TYPST) compile --pdf-standard a-2b --input speaker=false --input handout=false $< $@
# For printers that can't handle transparency
%-flattened.pdf: %.pdf
gs -dNOPAUSE -dBATCH -sDEVICE=pdfimage32 -sOutputFile=$@ $<
%.pdf: %.typ
$(TYPST) compile --input speaker=true $< $@
slides: rust-interviewing-slides-only.pdf
handout: rust-interviewing-with-notes.pdf
flattened: rust-interviewing-flattened.pdf
present: rust-interviewing.pdf
pympress $<
clean:
rm -f *.pdf