Makefile 946 Bytes
Newer Older
1
SRCS = Eybler_UnamPetii_HV43_Music_UnamPetii.ily Eybler_UnamPetii_HV43_Settings.ily
2
OUT=out
3
4
5
6

instruments = TI TII BI BII
scores = Choral Original

7
8
9
10
pdfs = $(instruments:%=$(OUT)/Eybler_UnamPetii_HV43_Instrument_%.pdf) $(scores:%=$(OUT)/Eybler_UnamPetii_HV43_Score_%.pdf)
texs = $(scores:%=TeX_Eybler_UnamPetii_HV43_Score_%.tex)
texpdfs = $(scores:%=$(OUT)/TeX_Eybler_UnamPetii_HV43_Score_%.pdf)

11
12

.PHONY: all clean
13
all: $(OUT) $(instruments) $(scores) tex
14
15
16
17
instruments: $(instruments)
scores: $(scores)

clean: 
18
19
20
21
22
23
24
25
26
27
	rm -rf $(OUT)

$(OUT) : 
	mkdir -p $(OUT)

$(instruments): % : $(OUT)/Eybler_UnamPetii_HV43_Instrument_%.pdf $(SRCS)
$(scores): % : $(OUT)/Eybler_UnamPetii_HV43_Score_%.pdf $(SRCS)

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

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

32
33
tex: latex
latex: $(texpdfs)
34

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