-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
71 lines (65 loc) · 2.17 KB
/
Makefile
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
SHELL=/bin/bash
FILE_BB=songbookBB
FILE_EB=songbookEB
FILE_C=songbookC
PARTITURAS_BB=partiturasBB
PARTITURAS_EB=partiturasEB
PARTITURAS_C=partiturasC
ENSAIO_FINAL_BB=ensaio_finalBB
ENSAIO_FINAL_EB=ensaio_finalEB
ENSAIO_FINAL_C=ensaio_finalC
LATEX=latex
LILYPOND_DIR=lilypond
OUTDIR=out
VIEWER=atril
#LILYPOND=cd $(LILYPOND_DIR) && lilypond -dno-point-and-click --pdf $(PARTITURAS).ly && cp *.pdf ../PDF
FAZ_BB=cd $(LILYPOND_DIR) && lilypond -s -dno-point-and-click --pdf $(PARTITURAS_BB).ly && mv *.pdf ../PDF/BB
FAZ_EB=cd $(LILYPOND_DIR) && lilypond -s -dno-point-and-click --pdf $(PARTITURAS_EB).ly && mv *.pdf ../PDF/EB
FAZ_C=cd $(LILYPOND_DIR) && lilypond -s -dno-point-and-click --pdf $(PARTITURAS_C).ly && mv *.pdf ../PDF/C
#LILYPOND19=cd $(LILYPOND_DIR) && lilypond -s -dno-point-and-click --pdf $(PARTITURAS).ly && mv *.pdf ../PDF
PDF_BB=cd $(LATEX) && pdflatex -file-line-error -halt-on-error $(FILE_BB) && mv $(FILE_BB).pdf ../$(FILE_BB).pdf
PDF_EB=cd $(LATEX) && pdflatex -file-line-error -halt-on-error $(FILE_EB) && mv $(FILE_EB).pdf ../$(FILE_EB).pdf
PDF_C=cd $(LATEX) && pdflatex -file-line-error -halt-on-error $(FILE_C) && mv $(FILE_C).pdf ../$(FILE_C).pdf
PDF_ENSAIO_BB=cd $(LATEX) && pdflatex -file-line-error -halt-on-error $(ENSAIO_FINAL_BB) && mv $(ENSAIO_FINAL_BB).pdf ../$(ENSAIO_FINAL_BB).pdf
PDF_ENSAIO_EB=cd $(LATEX) && pdflatex -file-line-error -halt-on-error $(ENSAIO_FINAL_EB) && mv $(ENSAIO_FINAL_EB).pdf ../$(ENSAIO_FINAL_EB).pdf
PDF_ENSAIO_C=cd $(LATEX) && pdflatex -file-line-error -halt-on-error $(ENSAIO_FINAL_C) && mv $(ENSAIO_FINAL_C).pdf ../$(ENSAIO_FINAL_C).pdf
PREVIEW=$(VIEWER) $(FILE).pdf &
BEEP=beep -r 3
all: lily pdf
bb:
$(FAZ_BB)
$(PDF_BB)
$(PDF_BB)
eb:
$(FAZ_EB)
$(PDF_EB)
$(PDF_EB)
c:
$(FAZ_C)
$(PDF_C)
$(PDF_C)
lily:
$(FAZ_BB)
$(FAZ_EB)
$(FAZ_C)
$(BEEP)
pdf:
$(PDF_BB)
$(PDF_BB)
$(PDF_EB)
$(PDF_EB)
$(PDF_C)
$(PDF_C)
ensaio:
$(PDF_ENSAIO_BB)
$(PDF_ENSAIO_BB)
$(PDF_ENSAIO_EB)
$(PDF_ENSAIO_EB)
$(PDF_ENSAIO_C)
$(PDF_ENSAIO_C)
beepa:
$(BEEP)
add:
git add songbook.pdf Partituras/*.ily latex/*.tex lilypond/*.ly Makefile README capas/*.tex
clean:
@ rm -rf $(OUTDIR)/* */*.bak */*.aux */*.toc */*.log */*.gz $(LILYPOND_DIR)/*.pdf $(LATEX)/*.pdf