FLUTE1_PART = flute1-part.ly
FLUTE2_PART = flute2-part.ly
OBOE1_PART = oboe1-part.ly
OBOE2_PART = oboe2-part.ly
CLARINET1_PART = clarinet1-part.ly
CLARINET2_PART = clarinet2-part.ly
HORN1_PART = horn1-part.ly
HORN2_PART = horn2-part.ly
HORN3_PART = horn3-part.ly
HORN4_PART = horn4-part.ly
BASSOON1_PART = bassoon1-part.ly
BASSOON2_PART = bassoon2-part.ly

.phony: all

all:	flute1.ps flute2.ps \
	oboe1.ps oboe2.ps \
	clarinet1c.ps clarinet1f.ps \
	clarinet1.ps clarinet2.ps \
	horn1.ps horn2.ps horn3.ps horn4.ps \
	bassoon1.ps bassoon2.ps \
	score.ps scorepub.ps

pub:	score.ps scorepub.ps
	cp scorepub.pdf /cygdrive/g/public_html/k477arr.pdf
	cp score.midi /cygdrive/g/public_html/k477arr.midi

%.ps: %.ly
	lilypond -f ps -f pdf $<

flute1.ps: flute1.ly $(FLUTE1_PART)

flute2.ps: flute2.ly $(FLUTE2_PART)

oboe1.ps: oboe1.ly $(OBOE1_PART)

oboe2.ps: oboe2.ly $(OBOE2_PART)

clarinet1c.ps: clarinet1c.ly $(CLARINET1_PART)

clarinet1.ps: clarinet1.ly $(CLARINET1_PART)

clarinet2.ps: clarinet2.ly $(CLARINET2_PART)

horn1.ps: horn1.ly $(HORN1_PART)

horn2.ps: horn2.ly $(HORN2_PART)

horn3.ps: horn3.ly $(HORN3_PART)

horn4.ps: horn4.ly $(HORN4_PART)

bassoon1.ps: bassoon1.ly $(BASSOON1_PART)

bassoon2.ps: bassoon2.ly $(BASSOON2_PART)

score.ps:	score.ly header.ly midi.ly\
	$(FLUTE1_PART) $(FLUTE2_PART) \
	$(OBOE1_PART) $(OBOE2_PART) \
	$(CLARINET1_PART) $(CLARINET2_PART) \
	$(HORN1_PART) $(HORN2_PART) $(HORN3_PART) $(HORN4_PART) \
	$(BASSOON1_PART) $(BASSOON2_PART)

scorepub.ps:	scorepub.ly header.ly midi.ly\
	$(FLUTE1_PART) $(FLUTE2_PART) \
	$(OBOE1_PART) $(OBOE2_PART) \
	$(CLARINET1_PART) $(CLARINET2_PART) \
	$(HORN1_PART) $(HORN2_PART) $(HORN3_PART) $(HORN4_PART) \
	$(BASSOON1_PART) $(BASSOON2_PART)

clean:
	rm -f *.pdf *.mid *.ps *~ *.midi *.log
