# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
# This is the Makefile for book09 in John Chambers' ABC version of  "Bob McQuillen" tune collection. #
# This directory contain tunes in Book 9, each in its own file. 
# This file has commands for making book09.abc and derived files.
# The book09.abc is linked into the parent directory, where you'll find all
# of his tunes that I've collected or transcribed.
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #

U=http://trillian.mit.edu/~jc/music/abc/by/BobMcQuillen/book09

a2p=jcabc2ps

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #

.SUFFIXES:
.SUFFIXES: .abc .ps
.abc.ps: $*.abc; $(a2p) $*.abc +F_80 >$*.ps

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #

all: book09 install

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #

neat:         ; -/bin/rm -f core *-
clean:    neat; -/bin/rm -f *.out *.ps *.pdf
	find new/ -name '*.abc' -mtime +30 -exec ls -l {} ';' -exec rm {} ';'
clobber: clean; -/bin/rm -f *.ps *.pdf

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
# Prototypes for building pages from single-tune files:

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
#

book09= 09*.abc
book09: book09.ps book09.pdf
book09.abc: book09.hdr $(book09) 
	abcjoin +cs book09.hdr  $(book09) >book09.abc
book09.ps: book09.abc book09.hdr BobsNoteBooks.fmt
	$(a2p) +n +x book09.abc +FBobsNoteBooks.fmt |PShdr %P "" %P |PSftr %D $U/book09.abc %D >book09.ps
book09.pdf: book09.ps
	ps2pdf book09.ps book09.pdf

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #

install: ../book09.abc ../../Bob_McQuillen_book09.abc

../book09.abc: book09.abc
	ln -f book09.abc ../book09.abc
../../Bob_McQuillen_book09.abc: book09.abc
	ln -f book09.abc ../../Bob_McQuillen_book09.abc
