# This is the Makefile in JC's .../abc/Contra/RJ/ directory

a2p=jcabc2ps

all: sets .htaccess

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

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
# Assorted collections:

coll: jig.ps march.ps polka.ps reel.ps square.ps waltz.ps

new.abc:            $(NEW) ; abcjoin +R                         $(NEW)    >new.abc
jig.abc:       jig/??*.abc ; abcjoin +R0 hdr/jig.hdr       jig/??*.abc    >jig.abc
march.abc:   march/??*.abc ; abcjoin +R0 hdr/march.hdr   march/??*.abc  >march.abc
polka.abc:   polka/??*.abc ; abcjoin +R0 hdr/polka.hdr   polka/??*.abc  >polka.abc
reel.abc:     reel/??*.abc ; abcjoin +R0 hdr/reel.hdr     reel/??*.abc   >reel.abc
square.abc: square/??*.abc ; abcjoin +R0 hdr/square.hdr square/??*.abc >square.abc
waltz.abc:   waltz/??*.abc ; abcjoin +R0 hdr/waltz.hdr   waltz/??*.abc  >waltz.abc

new.ps:       new.abc    new.fmt
	$(a2p)    new.abc +c +F    new +x | PShdr    new ""    new |PSftr %D "RJ new"     %D >new.ps
jig.ps:       jig.abc    jig.fmt
	$(a2p)    jig.abc +c +F    jig +x | PShdr    jig ""    jig |PSftr %D "RJ jigs"    %D >jig.ps
march.ps:   march.abc  march.fmt
	$(a2p)  march.abc +c +F  march +x | PShdr  march ""  march |PSftr %D "RJ marches" %D >march.ps
polka.ps:   polka.abc  polka.fmt
	$(a2p)  polka.abc +c +F  polka +x | PShdr  polka ""  polka |PSftr %D "RJ polkas"  %D >polka.ps
reel.ps:     reel.abc   reel.fmt
	$(a2p)   reel.abc +c +F   reel +x | PShdr   reel ""   reel |PSftr %D "RJ reels"   %D >reel.ps
square.ps: square.abc square.fmt
	$(a2p) square.abc +c +F square +x | PShdr square "" square |PSftr %D "RJ squares" %D >square.ps
waltz.ps:   waltz.abc  waltz.fmt
	$(a2p)  waltz.abc -c +F  waltz -x | PShdr  waltz ""  waltz |PSftr %D "RJ waltzes" %D >waltz.ps

new.pdf:       new.ps; ps2pdf    new.ps
jig.pdf:       jig.ps; ps2pdf    jig.ps
march.pdf:   march.ps; ps2pdf  march.ps
polka.pdf:   polka.ps; ps2pdf  polka.ps
reel.pdf:     reel.ps; ps2pdf   reel.ps
square.pdf: square.ps; ps2pdf square.ps
waltz.pdf:   waltz.ps; ps2pdf  waltz.ps

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

.htaccess: *.abc
	abcDesc *.abc

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