#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
#
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
U=http://trillian.mit.edu/~jc/music/book/Gow/Gow4

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
# The "all" entry builds three files containing all the tunes.

all: Gow4

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
install:  ../Gow4.abc
../Gow4.abc: Gow4.abc; ln -f Gow4.abc ../Gow4.abc

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
neat: ; /bin/rm -f *-
clean: neat; /bin/rm -f *.ps *.pdf *.svg
clobber: clean; /bin/rm -rf proto.* img

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
# Everything that I've transcribed (so far):

Gow4: Gow4.abc Gow4.ps Gow4.pdf # Gow4.svg
Gow4= [0-9][0-9][0-9][0-9][0-9]_*.abc
Gow4.abc: $(Gow4)
	abcjoin +S2 $(Gow4) >Gow4.abc
	ln -f Gow4.abc ../Gow4.abc
Gow4.ps: Gow4.abc fmt/Gow4.fmt
	abcm2ps -c -j 0 -x -F fmt/Gow4.fmt Gow4.abc -O tmp.ps
	 PShdr <tmp.ps %P 'Gow4 Collection' %P \
	|PSftr %D $U/ %D >Gow4.ps
Gow4.pdf: Gow4.ps
	ps2pdf Gow4.ps Gow4.pdf
Gow4.svg: Gow4.abc fmt/Gow4.fmt
	abcm2ps -j 0 -X -N 3 -F fmt/Gow4.fmt -O Gow4.svg Gow4.abc

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
# Here's an entry for making small "test" versions of a page.  This should go
# away eventually

test: test.abc test.ps test.pdf
test= 
test.abc: $(test)
	abcjoin +S2 $(test) >test.abc
test.ps: test.abc fmt/_65.fmt
	abcm2ps -F fmt/_70.fmt test.abc -O test.ps
#	rm tmp.ps
test.pdf: test.ps
	ps2pdf test.ps test.pdf
test.svg: test.abc fmt/test.fmt
	abcm2ps -j 0 -X -N 3 -F fmt/test.fmt -O test.svg test.abc
