-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (24 loc) · 644 Bytes
/
Makefile
File metadata and controls
28 lines (24 loc) · 644 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
build:
python bibparser.py
lualatex -interaction=nonstopmode -shell-escape main.tex
bibtex main.aux
install:
pip install -r requirements.txt
full:
make clean
make process_lily
make build
clean:
rm -f bibliography/bibliography.bib
rm -rf svg-inkscape
rm -f images/*_gen.svg
rm -f lily/*.svg
rm -f *.aux *.bbg *.bbl *.blg *.loa *.lof *.log *.lot *.out *.pdf *.toc *.mid
process_lily:
cd lily && \
for file in *.ly; do \
lilypond -dbackend=svg -dcrop $$file; \
cropped_file=$${file%.ly}.cropped.svg; \
output_file=../images/$$(basename $${cropped_file%.cropped.svg}_gen.svg); \
cp $$cropped_file $$output_file; \
done