-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
42 lines (35 loc) · 920 Bytes
/
justfile
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
TEXMK := "latexmk"
TEXOUTDIR := "latex.out"
TEXFLAGS := "-pdflua -output-directory=" + TEXOUTDIR
_default:
@just --list
[private]
pdf basename:
{{ TEXMK }} {{ TEXFLAGS }} {{ basename }}.tex
{{ TEXMK }} {{ TEXFLAGS }} {{ basename }}.tex
@cp {{ TEXOUTDIR }}/{{ basename }}.pdf .
[doc("Build template example")]
template:
@just pdf template
[doc("Compile assets for example")]
assets: template
magick \
-verbose \
-density 300 \
template.pdf \
-quality 100 \
-flatten \
-sharpen 0x1.0 \
images/template.png
[doc("Update license text")]
license:
python -m reuse download CC-BY-4.0
cp LICENSES/CC-BY-4.0.txt LICENSE
@rm -rf LICENSES
[doc("Remove temporary compilation files")]
clean:
rm -rf {{ TEXOUTDIR }}
rm -rf *.aux *.log *.out
[doc("Remove all generated files")]
purge: clean
rm -rf *.pdf images/template.png