Makefile 757 Bytes
Newer Older
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
SRCS = Eybler_UnamPetii_HV43_Music_UnamPetii.ily Eybler_UnamPetii_HV43_Settings.ily

instruments = TI TII BI BII
scores = Choral Original

pdfs = $(instruments:%=Eybler_UnamPetii_HV43_Instrument_%.pdf) $(scores:%=Eybler_UnamPetii_HV43_Score_%.pdf)

.PHONY: all clean
all: $(instruments) $(scores)
full: $(ext)
instruments: $(instruments)
scores: $(scores)

clean: 
	for i in $(ext); do \
          rm -f Eybler_UnamPetii_HV43_Score_$${i}.pdf Eybler_UnamPetii_HV43_Score_$${i}.ps; \
          rm -f Eybler_UnamPetii_HV43_Instrument_$${i}.pdf Eybler_UnamPetii_HV43_Instrument_$${i}.ps; \
	done; \

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

%.pdf : %.ly $(SRCS)
	lilypond $<