U=http://trillian.mit.edu/~jc/music/book/Hamilton/HUBT2/test

all: test-V 

test-V: test-V1 test-V2

# Format using abc2ps:
test-V1: test-V1.abc test-V1.ps test-V1.pdf
test-V1= [0-9][0-9][0-9][0-9][0-9][-_]*.abc
test-V1.abc: $(test-V1)
	abcjoin +C $(test-V1) >test-V1.abc
#	sleep 1
test-V1.ps: test-V1.abc fmt/V1.fmt
	abc2ps -n -x test-V1.abc 
test-V1.pdf: test-V1.ps
	ps2pdf test-V1.ps test-V1.pdf

# Format using abcm2ps:
test-V2: test-V2.abc test-V2.ps test-V2.pdf
test-V2= [0-9][0-9][0-9][0-9][0-9][=_]*.abc
test-V2.abc: $(test-V2)
	abcjoin +C $(test-V2) >test-V2.abc
#	sleep 1
test-V2.ps: test-V2.abc fmt/V2.fmt
	abcm2ps -x -F fmt/V2.fmt test-V2.abc -O tmp.ps
	PShdr <tmp.ps %P "Hamilton's Universal Tune-Book" %P \
	|PSftr %D $U/ %D >test-V2.ps
	rm tmp.ps
test-V2.pdf: test-V2.ps
	ps2pdf test-V2.ps test-V2.pdf

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