U=http://trillian.mit.edu/~jc/music/book/Gallini/NewColl44Cot

all: NewColl44Cot install

NewColl44Cot: NewColl44Cot1 NewColl44Cot2

#NewColl44Cot= [0-9][0-9]_*.abc
#NewColl44Cot.abc: $(NewColl44Cot)
#	abcjoin +CS2 $(NewColl44Cot) >NewColl44Cot.abc

# Format using jcabc2ps:
NewColl44Cot1: NewColl44Cot1.abc NewColl44Cot1.ps NewColl44Cot1.pdf
NewColl44Cot1= [0-9][0-9][_-]*.abc
NewColl44Cot1.abc: $(NewColl44Cot1)
	abcjoin +CS2 $(NewColl44Cot1) >NewColl44Cot1.abc
NewColl44Cot1.ps: NewColl44Cot1.abc fmt/NewColl44Cot1.fmt
	jcabc2ps +k4 +Ffmt/NewColl44Cot1.fmt +n +x NewColl44Cot1.abc \
	|PShdr %P 'A New Collection of 44 Cotillons - Gallini' %P \
	|PSftr %D $U/ %D >NewColl44Cot1.ps
NewColl44Cot1.pdf: NewColl44Cot1.ps
	ps2pdf NewColl44Cot1.ps NewColl44Cot1.pdf

# Format using abcm2ps:
NewColl44Cot2: NewColl44Cot2.abc NewColl44Cot2.ps NewColl44Cot2.pdf
NewColl44Cot2= [0-9][0-9][_=]*.abc
NewColl44Cot2.abc: $(NewColl44Cot2)
	abcjoin +CS2 $(NewColl44Cot2) >NewColl44Cot2.abc
NewColl44Cot2.ps: NewColl44Cot2.abc fmt/NewColl44Cot2.fmt
	abcm2ps -x -j 4 -F fmt/NewColl44Cot2.fmt NewColl44Cot2.abc -O tmp.ps
	PShdr <tmp.ps %P 'A New Collection of 44 Cotillons - Gallini' %P \
	|PSftr %D $U/ %D >NewColl44Cot2.ps
	rm tmp.ps
NewColl44Cot2.pdf: NewColl44Cot2.ps
	ps2pdf NewColl44Cot2.ps NewColl44Cot2.pdf

neat:         ; /bin/rm -f *- *.bak *.out
clean:    neat; /bin/rm -f *.ps *.pdf
clobber: clean; /bin/rm -f NewColl44Cot*.abc

install: ../NewColl44Cot1.abc ../../Gallini_NewColl44Cot1.abc ../NewColl44Cot2.abc ../../Gallini_NewColl44Cot2.abc

../NewColl44Cot1.abc: NewColl44Cot1.abc
	ln -f NewColl44Cot1.abc ../NewColl44Cot1.abc
../../Gallini_NewColl44Cot1.abc: NewColl44Cot1.abc
	ln -f NewColl44Cot1.abc ../../Gallini_NewColl44Cot1.abc

../NewColl44Cot2.abc: NewColl44Cot2.abc
	ln -f NewColl44Cot2.abc ../NewColl44Cot2.abc
../../Gallini_NewColl44Cot2.abc: NewColl44Cot2.abc
	ln -f NewColl44Cot2.abc ../../Gallini_NewColl44Cot2.abc

