U=http://trillian.mit.edu/~jc/music/book/24CountryDances/1804TP

all: all1804TP install

# The file names start with the number that's below the clef and key signature.
all1804TP= [0-9][0-9][0-9]_*.abc
all1804TP: all1804TP.abc all1804TP.ps all1804TP.pdf
all1804TP.abc: $(all1804TP) fmt/all1804TP.fmt
	abcjoin +CS $(all1804TP) >all1804TP.abc
all1804TP.ps: all1804TP.abc fmt/all1804TP.fmt
	jcabc2ps all1804TP.abc +k0 +n +x +Ffmt/all1804TP.fmt \
	|PShdr %P '24 Country Dances for 1804TP' %P \
	|PSftr %D $U/ %D >all1804TP.ps
all1804TP.pdf: all1804TP.ps
	ps2pdf all1804TP.ps all1804TP.pdf

all1804TP.fmt: fmt/all1804TP.fmt
	ln -f fmt/all1804TP.fmt all1804TP.fmt

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


install: ../Preston.abc ../../1804_Preston.abc ../../../24CountryDances_1804_Preston.abc
../Preston.abc: all1804TP.abc
	ln -f all1804TP.abc ../Preston.abc
../../1804_Preston.abc: all1804TP.abc
	ln -f all1804TP.abc ../../1804_Preston.abc
../../../24CountryDances_1804_Preston.abc: all1804TP.abc
	ln -f all1804TP.abc ../../../24CountryDances_1804_Preston.abc
