-
Notifications
You must be signed in to change notification settings - Fork 1
/
mold.yaml
40 lines (33 loc) · 983 Bytes
/
mold.yaml
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
version: "0.6"
recipes:
build:
help: "Build the pdf"
script: "latexmk -file-line-error -pdf $PAPER"
command: "sh $MOLD_SCRIPT"
watch:
help: "Rebuild when files are changed"
script: "latexmk -halt-on-error -file-line-error -pdf -pvc $PAPER"
command: "sh $MOLD_SCRIPT"
clean:
help: "Clean artifacts"
script: "latexmk -pdf -pvc -c $PAPER"
command: "sh $MOLD_SCRIPT"
local-changes:
help: "Commit local changes quickly"
script: "git add -p && git commit -m 'Local changes' && git push origin master"
command: "sh $MOLD_SCRIPT"
mk-makefile:
help: "Create a Makefile that does build, watch, and clean"
script: |
cat >Makefile <<EOF
.PHONY: all
all:
latexmk -file-line-error -pdf $PAPER
.PHONY: watch
watch:
latexmk -halt-on-error -file-line-error -pdf -pvc $PAPER
.PHONY: clean
clean:
latexmk -pdf -pvc -c $PAPER
EOF
command: "sh $MOLD_SCRIPT"