Makefile 1.39 KB
Newer Older
Reinhold Kainhofer's avatar
Reinhold Kainhofer committed
1
SRCS = Eybler_OmnesDeSabaVenient_HV40_Music_OmnesDeSabaVenient.ily Eybler_OmnesDeSabaVenient_HV40_Settings.ily
2
OUT=out
Reinhold Kainhofer's avatar
Reinhold Kainhofer committed
3

4
instruments = ObI ObII FagI FagII CorI CorII TbeI TbeII Tim VI VII Va SSolo S A T B Continuo VcB TrbI TrbIII O
5
scores = Full Long Vocal Particell Choral Original
Reinhold Kainhofer's avatar
Reinhold Kainhofer committed
6

7
pdfs = $(instruments:%=$(OUT)/Eybler_OmnesDeSabaVenient_HV40_Instrument_%.pdf) $(scores:%=$(OUT)/Eybler_OmnesDeSabaVenient_HV40_Score_%.pdf)
8
texs = $(scores:%=TeX_Eybler_OmnesDeSabaVenient_HV40_Score_%.tex)
9
texpdfs = $(scores:%=$(OUT)/TeX_Eybler_OmnesDeSabaVenient_HV40_Score_%.pdf) $(OUT)/TeX_Eybler_OmnesDeSabaVenient_HV40_Score_Instruments.pdf
10

11
additionalincludes = $(OUT)/Eybler_OmnesDeSabaVenient_HV40_Music_FagAlternatives.pdf
Reinhold Kainhofer's avatar
Reinhold Kainhofer committed
12
13

.PHONY: all clean
14
all: $(OUT) $(instruments) $(scores) $(additionalincludes) tex
Reinhold Kainhofer's avatar
Reinhold Kainhofer committed
15
16
17
18
instruments: $(instruments)
scores: $(scores)

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

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

$(instruments): % : $(OUT)/Eybler_OmnesDeSabaVenient_HV40_Instrument_%.pdf $(SRCS)
$(scores): % : $(OUT)/Eybler_OmnesDeSabaVenient_HV40_Score_%.pdf $(SRCS)

$(OUT)/%.pdf : %.ly $(SRCS)
28
	lilypond -o $(basename $@) $<
Reinhold Kainhofer's avatar
Reinhold Kainhofer committed
29

30
$(OUT)/%.mp3 : %.midi
31
	timidity -c /etc/timidity/fluidr3_gm.cfg -OwM $< -o $@
Reinhold Kainhofer's avatar
Reinhold Kainhofer committed
32

33
34
35
36
37

$(additionalincludes): $(OUT)/%.pdf: %.ly
	lilypond -dbackend=eps -o $(basename $@) $< 

tex: $(additionalincludes) latex
38
latex: $(texpdfs)
Reinhold Kainhofer's avatar
Reinhold Kainhofer committed
39

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