HORN1_PART = horn1-part.ly
HORN2_PART = horn2-part.ly
HORN3_PART = horn3-part.ly
HORN4_PART = horn4-part.ly

.phony: all

all:	horn1.ps horn2.ps horn3.ps horn4.ps \
	score.ps

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

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

horn1.ps: horn1.ly $(HORN1_PART)

horn2.ps: horn2.ly $(HORN2_PART)

horn3.ps: horn3.ly $(HORN3_PART)

horn4.ps: horn4.ly $(HORN4_PART)

score.ps:	score.ly header.ly midi.ly\
	$(HORN1_PART) $(HORN2_PART) $(HORN3_PART) $(HORN4_PART)

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