#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# The Tom Anderson Collections, volume two, 2004
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
U=http://trillian.mit.edu/~jc/music/book/TTAC2

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

all: TTAC2

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
install:  ../TTAC2.abc
../TTAC2.abc: TTAC2.abc; ln -f TTAC2.abc ../TTAC2.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):

TTAC2: TTAC2.abc TTAC2.ps TTAC2.pdf # TTAC2.svg
TTAC2= [0-9][0-9][0-9]_*.abc
TTAC2.abc: $(TTAC2)
	abcjoin +S2 $(TTAC2) >TTAC2.abc
	ln -f TTAC2.abc ../TTAC2.abc
TTAC2.ps: TTAC2.abc fmt/TTAC2.fmt
	jcabc2ps +k2 +x +Ffmt/TTAC2.fmt +n <TTAC2.abc \
	|PShdr %P 'TTAC2 Collection' %P \
	|PSftr %D $U/ %D >TTAC2.ps
TTAC2.pdf: TTAC2.ps
	ps2pdf TTAC2.ps TTAC2.pdf
TTAC2.svg: TTAC2.abc fmt/TTAC2.fmt
	abcm2ps -j 0 -X -N 3 -F fmt/TTAC2.fmt -O TTAC2.svg TTAC2.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
