Makefile 1.13 KB
Newer Older
1
2
base = Eybler_Graduale_DomineDeus_HV42
SRCS = Eybler_Graduale_DomineDeus_HV42_Music_DomineDeus.ily $(base)_Settings.ily
3
OUT=out
4

5
instruments = ObI ObII FagI FagII TbeI TbeII TrbI TrbII Tim VI VII Va S A T B Organ VcB
6
scores = Full Long Vocal Choral Original
7

8
9
10
pdfs = $(instruments:%=$(OUT)/$(base)_Instrument_%.pdf) $(scores:%=$(OUT)/$(base)_Score_%.pdf)
texs = $(scores:%=TeX_$(base)_Score_%.tex)
texpdfs = $(scores:%=$(OUT)/TeX_$(base)_Score_%.pdf) $(OUT)/TeX_$(base)_Score_Instruments.pdf
11

12
additionalscores = 
13
14

.PHONY: all clean
15
all: $(OUT) $(instruments) $(scores) $(additionalscores) tex
16
17
18
instruments: $(instruments)
scores: $(scores)

19
clean:
20
21
	rm -rf $(OUT)

22
$(OUT) :
23
24
	mkdir -p $(OUT)

25
26
$(instruments): % : $(OUT)/$(base)_Instrument_%.pdf $(SRCS)
$(scores): % : $(OUT)/$(base)_Score_%.pdf $(SRCS)
27
28
29

$(OUT)/%.pdf : %.ly $(SRCS)
	lilypond -o $(basename $@) $<
30

31
32
$(OUT)/%.mp3 : %.midi
	timidity -c /etc/timidity/fluidr3_gm.cfg -OwM $< -o $@
33

34
35
36
37
$(additionalscores): $(OUT)/%.pdf: %.ly
	lilypond -dbackend=eps -o $(basename $@) $<

tex: $(additionalscores) latex
38
latex: $(texpdfs)
39

40
41
$(OUT)/TeX_%.pdf : TeX_%.tex
	TEXINPUTS=$(OUT): latex --output-directory=$(OUT)/ $<