
# list of example files:
#
#
MPPFILES =\
 bach.mpp\
 mlalt.mpp mlvio1.mpp mlvio2.mpp mlcello.mpp\
 s1.mpp s2.mpp\
 test.mpp\
 trip.mpp\

RUNINI=script.ini note.ini

# list of postscript files:
#
POSTSCRIPTS =\
 bach.ps\
 mlalt.ps\
 s1.ps\
 test.ps\
 trip.ps\

#

# examples
#
examples: $(POSTSCRIPTS)
	tar -cf examples.tar $(MPPFILES) $(POSTSCRIPTS)
	gzip examples.tar

test.ps: mpp.tex test.mpp 

s1.ps: mpp.tex s1.mpp s2.mpp
	$(MDO) s1 , s2
	$(DVIPS) s1 -o s1.ps

mlalt.ps: mpp.tex mlalt.mpp mlvio1.mpp mlvio2.mpp mlcello.mpp
	$(MDO) mlalt mlvio1 mlvio2 mlcello
	$(DVIPS) mlalt -o mlalt.ps

DISTFILES=$(MPPFILES) $(RUNINI) Makefile mpp.tex
dist:
	mkdir ..$(Z)$(DISTDIR)$(Z)input
	$(LN) $(DISTFILES) ..$(Z)$(DISTDIR)$(Z)input

%.ps: %.mpp
#	$(MPP) $<
	$(MDO) `basename $< .mpp`
	$(DVIPS) `basename $< .mpp` -o `basename $< .mpp`.ps

clean:
	-../cleanmus
