# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
# Makefile for the .../session/RtB directory, for the "Round the Bend" group in #
# the Boston-west area.
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
a2p=jcabc2ps
RM=/bin/rm
U=http://john-chambers.us/~jc/music/abc/session/RtB

all: 2022_Round_the_Bend_set
#Sets
#airs hornpipes slipjigs jigs mixed marches polkas songs reels shottishes waltzes

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
neat:
	$(RM) -f *- *.old
clean: neat
	$(RM) -f *.out *.log
	$(RM) -f *.ps *.pdf *- *.log 
	$(RM) -f *.abc	 # These are only temporary in this directory
clobber: clean
	$(RM) -f *.abc

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
airs: airs.abc airs.ps airs.pdf
airs.abc: air/*.abc
	abcjoin +R +S air/*.abc >airs.abc
airs.ps: airs.abc
	$(a2p) airs.abc +x +Ffmt/_65 \
	|PSftr "Page %P" $U/ %D >airs.ps
airs.pdf: airs.ps
	ps2pdf airs.ps airs.pdf

hornpipes: hornpipes.abc hornpipes.ps hornpipes.pdf
hornpipes.abc: hornpipe/*.abc
	abcjoin +R +S hornpipe/*.abc >hornpipes.abc
hornpipes.ps: hornpipes.abc
	$(a2p) hornpipes.abc +x +Ffmt/_65 \
	|PSftr "Page %P" $U/ %D >hornpipes.ps
hornpipes.pdf: hornpipes.ps
	ps2pdf hornpipes.ps hornpipes.pdf

jigs: jigs.abc jigs.ps jigs.pdf
jigs.abc: jig/*.abc
	abcjoin +R +S jig/*.abc >jigs.abc
	ln -f jigs.abc set/jigs.abc
jigs.ps: jigs.abc
	$(a2p) jigs.abc +x +Ffmt/_65 \
	|PShdr "%P jigs" '' "jigs %P" \
	|PSftr %D $U/ %D >jigs.ps
jigs.pdf: jigs.ps
	ps2pdf jigs.ps jigs.pdf
	ln -f jigs.pdf img/jigs.pdf

marches: marches.abc marches.ps marches.pdf
marches.abc: march/*.abc
	abcjoin +R +S march/*.abc >marches.abc
marches.ps: marches.abc
	$(a2p) marches.abc +x +Ffmt/_65 \
	|PSftr "Page %P" $U/ %D >marches.ps
marches.pdf: marches.ps
	ps2pdf marches.ps marches.pdf

mixed: mixed.abc mixed.ps mixed.pdf
mixed.abc: march/*.abc
	abcjoin +R +S mixed/*.abc >mixed.abc
mixed.ps: mixed.abc
	$(a2p) mixed.abc +x +Ffmt/_65 \
	|PSftr "Page %P" $U/ %D >mixed.ps
mixed.pdf: mixed.ps
	ps2pdf mixed.ps mixed.pdf

polkas: polkas.abc polkas.ps polkas.pdf
polkas.abc: polka/*.abc
	abcjoin +R +S polka/*.abc >polkas.abc
polkas.ps: polkas.abc
	$(a2p) polkas.abc +x +Ffmt/_65 \
	|PSftr "Page %P" $U/ %D >polkas.ps
polkas.pdf: polkas.ps
	ps2pdf polkas.ps polkas.pdf

reels: reels.abc reels.ps reels.pdf
reels.abc: reel/*.abc
	abcjoin +R +S reel/*.abc >reels.abc
reels.ps: reels.abc
	$(a2p) reels.abc +x +Ffmt/_65 \
	|PSftr "Page %P" $U/ %D >reels.ps
reels.pdf: reels.ps
	ps2pdf reels.ps reels.pdf

shottishes: shottishes.abc shottishes.ps shottishes.pdf
shottishes.abc: shottish/*.abc
	abcjoin +R +S shottish/*.abc >shottishes.abc
shottishes.ps: shottishes.abc
	$(a2p) shottishes.abc +x +Ffmt/_65 \
	|PSftr "Page %P" $U/ %D >shottishes.ps
shottishes.pdf: shottishes.ps
	ps2pdf shottishes.ps shottishes.pdf

slipjigs: slipjigs.abc slipjigs.ps slipjigs.pdf
slipjigs.abc: slipjig/*.abc
	abcjoin +R +S slipjig/*.abc >slipjigs.abc
slipjigs.ps: slipjigs.abc
	$(a2p) slipjigs.abc +x +Ffmt/_65 \
	|PSftr "Page %P" $U/ %D >slipjigs.ps
slipjigs.pdf: slipjigs.ps
	ps2pdf slipjigs.ps slipjigs.pdf

songs: songs.abc songs.ps songs.pdf
songs.abc: song/*.abc
	abcjoin +R +S song/*.abc >songs.abc
songs.ps: songs.abc
	$(a2p) songs.abc +x +Ffmt/_65 \
	|PSftr "Page %P" $U/ %D >songs.ps
songs.pdf: songs.ps
	ps2pdf songs.ps songs.pdf

waltzes: waltzes.abc waltzes.ps waltzes.pdf
waltzes.abc: waltz/*.abc
	abcjoin +R +S waltz/*.abc >waltzes.abc
waltzes.ps: waltzes.abc
	$(a2p) waltzes.abc +x +Ffmt/_65 \
	|PSftr "Page %P" $U/ %D >waltzes.ps
waltzes.pdf: waltzes.ps
	ps2pdf waltzes.ps waltzes.pdf

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
# Here is a prototype for making medley pages:

# jj
jj= _.abc
jj: jj.abc jj.ps jj.pdf
jj.abc: $(jj) # hdr/jj.hdr
	abcjoin +s $(jj) >jj.abc
jj.ps: jj.abc fmt/_70.fmt
	$(a2p) jj.abc +Ffmt/_70 \
	|PShdr jj '' jj \
	|PSftr %D $U/ %D >jj.ps
jj.pdf: jj.ps
	ps2pdf jj.ps jj.pdf

# mm
mm=
mm: mm.abc mm.ps mm.pdf
mm.abc: $(mm) # hdr/mm.hdr
	abcmedley "mm" $(mm) >mm.abc
mm.ps: mm.abc fmt/_75.fmt
	$(a2p) mm.abc +Ffmt/_75 \
	|PShdr mm '' mm \
	|PSftr %D $U/ %D >mm.ps
mm.pdf: mm.ps
	ps2pdf mm.ps mm.pdf

# TT
TT= TT/TT_K-B-S.abc	# Single-tune files
TT: RR/TT-KK-BC-SC.abc RR/TT-KK-BC-SC.pdf
RR/TT-KK-BC-SC.abc: $(TT) # hdr/TT-KK-BC-SC.hdr
	abcjoin $(TT) >RR/TT-KK-BC-SC.abc
RR/TT-KK-BC-SC.ps: RR/TT-KK-BC-SC.abc fmt/_70.fmt
	$(a2p) RR/TT-KK-BC-SC.abc +Ffmt/_70 \
	|PShdr RR/TT '' RR/TT \
	|PSftr %D $U/ %D >RR/TT-KK-BC-SC.ps
RR/TT-KK-BC-SC.pdf: RR/TT-KK-BC-SC.ps
	ps2pdf RR/TT-KK-BC-SC.ps RR/TT-KK-BC-SC.pdf

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
# Medleys that we make locally:

# Tune_Name
Tune_Name: Tune_Name-Keys-Info
Tune_Name-Keys-Info= Tune_Name/Tune_Name-__-__-__.abc Tune_Name/Tune_Name-__-__-__.abc
Tune_Name-Keys-Info: Tune_Name-Keys-Info.abc Tune_Name-Keys-Info.pdf
Tune_Name-Keys-Info.abc: $(Tune_Name-Keys-Info)
	abcjoin +s $(Tune_Name-Keys-Info) >Tune_Name-Keys-Info.abc
	ln -f Tune_Name-Keys-Info.abc ___/
Tune_Name-Keys-Info.ps: Tune_Name-Keys-Info.abc fmt/_70.fmt
	$(a2p) +Ffmt/_70.fmt Tune_Name-Keys-Info.abc \
	|PShdr Tune_Name-Keys '' Tune_Name-Keys \
	|PSftr %D $U/ %D >Tune_Name-Keys-Info.ps
Tune_Name-Keys-Info.pdf: Tune_Name-Keys-Info.ps
	ps2pdf Tune_Name-Keys-Info.ps Tune_Name-Keys-Info.pdf
	ln -f Tune_Name-Keys-Info.pdf img/Tune_Name.pdf

# _name set
_name_Set= \
	__
_name_Set: _name_Set.abc _name_Set.pdf
_name_Set.abc: hdr/_name_Set.hdr $(_name_Set)
	abcjoin $(_name_Set) >_name_Set.abc
_name_Set.ps: _name_Set.abc fmt/Set.fmt
	$(a2p) _name_Set.abc +Ffmt/Set.fmt \
	|PShdr '_name_Set' '' '_name_Set' \
	|PSftr %D $U/ %D >_name_Set.ps
_name_Set.pdf: _name_Set.ps
	ps2pdf _name_Set.ps _name_Set.pdf

Sets: \
	2022_Round_the_Bend_set Danny_Boy-F,G,C,D-16-4w General_Guinness Jamie_Allen \
	Jamie_Scotland_Set Jig_Set_01 Minstrel_Boy Parting_Glass Roddy_McCorley \
	Scotland_the_Brave_Song Skye_Boat_Song Star_of_the_County_Down Wild_Rover 

# 2022 Round_the_Bend set
2022_Round_the_Bend: 2022_Round_the_Bend_set
2022_Round_the_Bend_set= hdr/2022_Round_the_Bend_set.hdr \
	song/Ill_Tell_My_Ma-G,D-16-8w20.abc page \
	song/Jambalaya-C-16-4.abc \
	song/Drunken_Sailor-Dm-16-2.abc \
	song/Blue_Bayou.abc \
	jig/Rambling_Rover-C-32-8w16.abc \
	song/Ballad_of_the_MTA.abc \
	hymn/Ill_Fly_Away-D-32-4.abc \
	song/Wild_Rover-G-36-4w18.abc \
	song/Yellow_Rose_of_Texas-G-16-3W.abc \
	page mixed/Star_of_the_County_Down-Em,Am-32-3.abc \
	march/Scotland_the_Brave-D,G-32-4w8.abc \
	song/Whiskey_Youre_the_Devil-C-17-7w.abc \
	march/Minstrel_Boy-D,C-16-6W16.abc \
	song/King_of_the_Road.abc \
	march/Long_Way_to_Tipperary-D,G-16-6W16.abc \
	song/Wild_Mountain_Thyme-D-18-4w8.abc \
	song/Whiskey_In_The_Jar-C,D,G-24-9.abc \
	greek/Samiotissa-G-24-4w12.abc \
	song/Ripple-basic-G-138-w.abc \
		ftr/2022_Round_the_Bend_set.ftr
2022_Round_the_Bend_set: 2022_Round_the_Bend_set.abc 2022_Round_the_Bend_set.pdf
2022_Round_the_Bend_set.abc: $(2022_Round_the_Bend_set)
	abcjoin +C +R0 +S2  $(2022_Round_the_Bend_set) >2022_Round_the_Bend_set.abc
	ln -f 2022_Round_the_Bend_set.abc set/
2022_Round_the_Bend_set.ps: 2022_Round_the_Bend_set.abc fmt/2022_Round_the_Bend_set.fmt
	$(a2p) 2022_Round_the_Bend_set.abc +Ffmt/2022_Round_the_Bend_set.fmt \
	|PShdr '2022 Round the Bend Set' '' '2022 Round the Bend Set' \
	|PSftr %D $U/ %D >2022_Round_the_Bend_set.ps
2022_Round_the_Bend_set.pdf: 2022_Round_the_Bend_set.ps
	ps2pdf 2022_Round_the_Bend_set.ps 2022_Round_the_Bend_set.pdf
	ln -f 2022_Round_the_Bend_set.pdf img/2022_Round_the_Bend_set.pdf
hdr/2022_Round_the_Bend_set.hdr: ; touch hdr/2022_Round_the_Bend_set.hdr
ftr/2022_Round_the_Bend_set.ftr: ; touch ftr/2022_Round_the_Bend_set.ftr
# ftr/2022_Round_the_Bend_set.ftr

# Jefferson & Liberty + Black Watch set
Jefferson_Black_set: Jefferson_Black_set
Jefferson_Black_set= hdr/Jefferson_Black_set.hdr \
	jig/Jefferson_and_Liberty_SAFD_1-Bm-32-2.abc sep5 \
	march/Black_Watch-Bm-32-2.abc sep5x2 \
	jig/Jefferson_and_Liberty_SAFD_1-Gm-32-2.abc sep5 \
	march/Black_Watch-Gm-32-2.abc \
	ftr/Jefferson_Black_set.ftr
Jefferson_Black_set: Jefferson_Black_set.abc Jefferson_Black_set.pdf
Jefferson_Black_set.abc: $(Jefferson_Black_set)
	abcjoin +R0 $(Jefferson_Black_set) >Jefferson_Black_set.abc
	ln -f Jefferson_Black_set.abc set/
Jefferson_Black_set.ps: Jefferson_Black_set.abc fmt/pdf_80.fmt
	$(a2p) Jefferson_Black_set.abc +Ffmt/pdf_80.fmt \
	|PShdr 'Jeferson & Liberty + Black Watch Set' '' 'Jeferson & Liberty + Black Watch Set' \
	|PSftr %D $U/ %D >Jefferson_Black_set.ps
Jefferson_Black_set.pdf: Jefferson_Black_set.ps
	ps2pdf Jefferson_Black_set.ps Jefferson_Black_set.pdf
	ln -f Jefferson_Black_set.pdf img/Jefferson_Black_set.pdf
hdr/Jefferson_Black_set.hdr: ; touch hdr/Jefferson_Black_set.hdr
ftr/Jefferson_Black_set.ftr: ; touch ftr/Jefferson_Black_set.ftr
# ftr/Jefferson_Black_set.ftr

# Jig_Set_01
Jig_Set_01= hdr/Jig_Set_01.hdr \
	jig/Irish_Washerwoman_1-G-32-2.abc \
	jig/Roaring_Jelly_1-D-32-2.abc \
	jig/Ten_Penny_Bit_1-Am-32-2.abc \
	jig/Jefferson_and_Liberty_SAFD_1-Gm-32-2.abc \
	jig/Kesh_Jig-G-32-2.abc \
	jig/Lanagans_Ball_1-Em-32-2.abc \
	ftr/Jig_Set_01.ftr
Jig_Set_01: Jig_Set_01.abc Jig_Set_01.pdf
Jig_Set_01.abc: $(Jig_Set_01)
	abcjoin +R +S $(Jig_Set_01) >Jig_Set_01.abc
	ln -f Jig_Set_01.abc set/
Jig_Set_01.ps: Jig_Set_01.abc fmt/pdf_75.fmt
	$(a2p) Jig_Set_01.abc +Ffmt/pdf_75.fmt \
	|PShdr 'RtB jig set1' '' 'RtB jig set 1' \
	|PSftr %D $U/ %D >Jig_Set_01.ps
Jig_Set_01.pdf: Jig_Set_01.ps
	ps2pdf Jig_Set_01.ps Jig_Set_01.pdf
	ln -f Jig_Set_01.pdf img/Jig_Set_01.pdf
hdr/Jig_Set_01.hdr: ; touch hdr/Jig_Set_01.hdr
ftr/Jig_Set_01.ftr: ; touch ftr/Jig_Set_01.ftr
# ftr/Jig_Set_01.ftr

# Danny Boy C,D,F,G
Danny_Boy: Danny_Boy-F,G,C,D-16-4w Danny_Boy-G,C,D-16-10w


# Danny Boy G,C,D
Danny_Boy-G,C,D-16-10w= hdr/Danny_Boy-G,C,D-16-10w.hdr \
	Danny_Boy/Danny_Boy-G-16-8w.abc  \
	Danny_Boy/Danny_Boy-C-16-2.abc \
	Danny_Boy/Danny_Boy-D-16-2.abc page \
	ftr/Danny_Boy-G,C,D-16-10w.ftr
# air/Danny_Boy-G-16-4.abc (omitted for now)
Danny_Boy-G,C,D-16-10w: Danny_Boy-G,C,D-16-10w.abc Danny_Boy-G,C,D-16-10w.pdf
Danny_Boy-G,C,D-16-10w.abc: $(Danny_Boy-G,C,D-16-10w)
	abcjoin $(Danny_Boy-G,C,D-16-10w) >Danny_Boy-G,C,D-16-10w.abc
	ln -f Danny_Boy-G,C,D-16-10w.abc song/Danny_Boy-G,C,D-16-10w.abc
Danny_Boy-G,C,D-16-10w.ps: Danny_Boy-G,C,D-16-10w.abc fmt/pdf_75.fmt
	$(a2p) Danny_Boy-G,C,D-16-10w.abc +Ffmt/pdf_75.fmt  \
	|PShdr 'Danny Boy' '' 'Danny Boy'  \
	|PSftr %D $U/ %D >Danny_Boy-G,C,D-16-10w.ps
Danny_Boy-G,C,D-16-10w.pdf: Danny_Boy-G,C,D-16-10w.ps
	ps2pdf Danny_Boy-G,C,D-16-10w.ps Danny_Boy-G,C,D-16-10w.pdf
	ln -f Danny_Boy-G,C,D-16-10w.pdf img/Danny_Boy.pdf
hdr/Danny_Boy-G,C,D-16-10w.hdr: ; touch hdr/Danny_Boy-G,C,D-16-10w.hdr
ftr/Danny_Boy-G,C,D-16-10w.ftr: ; touch ftr/Danny_Boy-G,C,D-16-10w.ftr

# Danny Boy F,G,C,D
Danny_Boy-F,G,C,D-16-4w= hdr/Danny_Boy-F,G,C,D-16-4w.hdr \
	Danny_Boy/Danny_Boy-F-16-4w.abc \
	Danny_Boy/Danny_Boy-G-16-2.abc \
	Danny_Boy/Danny_Boy-C-16-2.abc \
	Danny_Boy/Danny_Boy-D-16-2.abc \
	ftr/Danny_Boy-F,G,C,D-16-4w.ftr
# air/Danny_Boy-G-16-4.abc (omitted for now)
Danny_Boy-F,G,C,D-16-4w: Danny_Boy-F,G,C,D-16-4w.abc Danny_Boy-F,G,C,D-16-4w.pdf
Danny_Boy-F,G,C,D-16-4w.abc: $(Danny_Boy-F,G,C,D-16-4w)
	abcjoin $(Danny_Boy-F,G,C,D-16-4w) >Danny_Boy-F,G,C,D-16-4w.abc
Danny_Boy-F,G,C,D-16-4w.ps: Danny_Boy-F,G,C,D-16-4w.abc fmt/Danny_Boy_65.fmt
	$(a2p) Danny_Boy-F,G,C,D-16-4w.abc +Ffmt/Danny_Boy_65.fmt  \
	|PShdr 'Danny Boy' '' 'Danny Boy'  \
	|PSftr %D $U/ %D >Danny_Boy-F,G,C,D-16-4w.ps
Danny_Boy-F,G,C,D-16-4w.pdf: Danny_Boy-F,G,C,D-16-4w.ps
	ps2pdf Danny_Boy-F,G,C,D-16-4w.ps Danny_Boy-F,G,C,D-16-4w.pdf
hdr/Danny_Boy-F,G,C,D-16-4w.hdr: ; touch hdr/Danny_Boy-F,G,C,D-16-4w.hdr
ftr/Danny_Boy-F,G,C,D-16-4w.ftr: ; touch ftr/Danny_Boy-F,G,C,D-16-4w.ftr

# Drunken Sailor 
Drunken_Sailor: Drunken_Sailor-Dm,Em,Am-16-2w11

# Drunken Sailor Dm,Em,Am + words
Drunken_Sailor-Dm,Em,Am-16-2w11: Drunken_Sailor-Dm,Em,Am-16-2w11.abc Drunken_Sailor-Dm,Em,Am-16-2w11.pdf
Drunken_Sailor-Dm,Em,Am-16-2w11= \
	Drunken_Sailor/Drunken_Sailor-Dm-16-2w.abc \
	Drunken_Sailor/Drunken_Sailor-Em-16-2.abc \
	Drunken_Sailor/Drunken_Sailor-Am-16-2.abc
Drunken_Sailor-Dm,Em,Am-16-2w11.abc: $(Drunken_Sailor-Dm,Em,Am-16-2w11)
	abcjoin $(Drunken_Sailor-Dm,Em,Am-16-2w11) >Drunken_Sailor-Dm,Em,Am-16-2w11.abc
	ln -f Drunken_Sailor-Dm,Em,Am-16-2w11.abc song/
Drunken_Sailor-Dm,Em,Am-16-2w11.ps: Drunken_Sailor-Dm,Em,Am-16-2w11.abc fmt/_80.fmt
	$(a2p) +Ffmt/_80 Drunken_Sailor-Dm,Em,Am-16-2w11.abc \
	| PShdr "Drunken_Sailor-Dm,Em,Am-16-2w11" "" "Drunken_Sailor-Dm,Em,Am-16-2w11" \
	| PSftr %D $U/ %D >Drunken_Sailor-Dm,Em,Am-16-2w11.ps
Drunken_Sailor-Dm,Em,Am-16-2w11.pdf: Drunken_Sailor-Dm,Em,Am-16-2w11.ps
	ps2pdf Drunken_Sailor-Dm,Em,Am-16-2w11.ps Drunken_Sailor-Dm,Em,Am-16-2w11.pdf
	ln -f Drunken_Sailor-Dm,Em,Am-16-2w11.pdf img/Drunken_Sailor.pdf

# General Guinness G,C,D,F-16-3wW
General_Guinness: General_Guinness-G,C,D,F-16-3wW
General_Guinness-G,C,D,F-16-3wW: General_Guinness-G,C,D,F-16-3wW.abc General_Guinness-G,C,D,F-16-3wW.pdf
General_Guinness-G,C,D,F-16-3wW= hdr/General_Guinness-G,C,D,F-16-3wW.hdr \
	General_Guinness/General_Guinness-G-16-4wW.abc \
	General_Guinness/General_Guinness-C-16-1.abc \
	General_Guinness/General_Guinness-D-16-1.abc \
	General_Guinness/General_Guinness-F-16-1.abc \
	ftr/General_Guinness-G,C,D,F-16-3wW.ftr
General_Guinness-G,C,D,F-16-3wW: General_Guinness-G,C,D,F-16-3wW.abc General_Guinness-G,C,D,F-16-3wW.pdf
General_Guinness-G,C,D,F-16-3wW.abc: $(General_Guinness-G,C,D,F-16-3wW)
	abcjoin $(General_Guinness-G,C,D,F-16-3wW) >General_Guinness-G,C,D,F-16-3wW.abc
	ln -f General_Guinness-G,C,D,F-16-3wW.abc song/
General_Guinness-G,C,D,F-16-3wW.ps: General_Guinness-G,C,D,F-16-3wW.abc fmt/General_Guinness.fmt
	$(a2p) General_Guinness-G,C,D,F-16-3wW.abc +Ffmt/General_Guinness.fmt  \
	|PShdr 'General Guinness' '' 'General Guinness'  \
	|PSftr %D $U/ %D >General_Guinness-G,C,D,F-16-3wW.ps
General_Guinness-G,C,D,F-16-3wW.pdf: General_Guinness-G,C,D,F-16-3wW.ps
	ps2pdf General_Guinness-G,C,D,F-16-3wW.ps General_Guinness.pdf
	ln -f General_Guinness.pdf img/
hdr/General_Guinness-G,C,D,F-16-3wW.hdr: ; touch hdr/General_Guinness-G,C,D,F-16-3wW.hdr
ftr/General_Guinness-G,C,D,F-16-3wW.ftr: ; touch ftr/General_Guinness-G,C,D,F-16-3wW.ftr


# Jamie_Allen-G,A,C,D-32-2
Jamie_Allen-G,A,C,D-32-2= \
	Jamie_Allen/Jamie_Allen-G-32-2.abc \
	Jamie_Allen/Jamie_Allen-A-32-2.abc \
	Jamie_Allen/Jamie_Allen-C-32-2.abc \
	Jamie_Allen/Jamie_Allen-D-32-2.abc
Jamie_Allen-G,A,C,D-32-2: Jamie_Allen-G,A,C,D-32-2.abc Jamie_Allen-G,A,C,D-32-2.ps Jamie_Allen-G,A,C,D-32-2.pdf
Jamie_Allen-G,A,C,D-32-2.abc: $(Jamie_Allen-G,A,C,D-32-2)
	abcjoin +s $(Jamie_Allen-G,A,C,D-32-2) >Jamie_Allen-G,A,C,D-32-2.abc
Jamie_Allen-G,A,C,D-32-2.ps: Jamie_Allen-G,A,C,D-32-2.abc fmt/_80.fmt
	$(a2p) +Ffmt/_80 Jamie_Allen-G,A,C,D-32-2.abc \
	| PShdr "Jamie_Allen-G,A,C,D-32-2" "" "Jamie_Allen-G,A,C,D-32-2" \
	| PSftr %D $U/ %D >Jamie_Allen-G,A,C,D-32-2.ps
Jamie_Allen-G,A,C,D-32-2.pdf: Jamie_Allen-G,A,C,D-32-2.ps
	ps2pdf Jamie_Allen-G,A,C,D-32-2.ps Jamie_Allen-G,A,C,D-32-2.pdf

# Jamie Scotland set
Jamie_Scotland_Set= Jamie_Allen/Jamie_Allen-G-32-2.abc sep5x2 \
	Scotland_the_Brave/Scotland_the_Brave-G-32-3.abc \
	Scotland_the_Brave/Scotland_the_Brave_SS-A-32-3.abc
Jamie_Scotland_Set: Jamie_Scotland_Set.abc Jamie_Scotland_Set.ps Jamie_Scotland_Set.pdf
Jamie_Scotland_Set.abc: hdr/Jamie_Scotland_Set.hdr $(Jamie_Scotland_Set)
	abcjoin $(Jamie_Scotland_Set) >Jamie_Scotland_Set.abc
Jamie_Scotland_Set.ps: Jamie_Scotland_Set.abc fmt/Set.fmt
	$(a2p) Jamie_Scotland_Set.abc +Ffmt/Set.fmt \
	|PShdr 'Jamie_Scotland_Set' '' 'Jamie_Scotland_Set' \
	|PSftr %D $U/ %D >Jamie_Scotland_Set.ps
Jamie_Scotland_Set.pdf: Jamie_Scotland_Set.ps
	ps2pdf Jamie_Scotland_Set.ps Jamie_Scotland_Set.pdf

# King of the Road
King_of_the_Road: King_of_the_Road-C-40-5w8
King_of_the_Road-C-40-5w8= song/King_of_the_Road-C-40-5w8.abc
King_of_the_Road-C-40-5w8: King_of_the_Road-C-40-5w8.abc King_of_the_Road-C-40-5w8.pdf
King_of_the_Road-C-40-5w8.abc: $(King_of_the_Road-C-40-5w8)
	abcjoin +s $(King_of_the_Road-C-40-5w8) >King_of_the_Road-C-40-5w8.abc
	ln -f King_of_the_Road-C-40-5w8.abc song/
King_of_the_Road-C-40-5w8.ps: King_of_the_Road-C-40-5w8.abc fmt/pdf_75.fmt
	$(a2p) +Ffmt/pdf_75.fmt King_of_the_Road-C-40-5w8.abc \
	|PShdr "King of the Road" '' "King of the Road" \
	|PSftr %D $U/ %D >King_of_the_Road-C-40-5w8.ps
King_of_the_Road-C-40-5w8.pdf: King_of_the_Road-C-40-5w8.ps
	ps2pdf King_of_the_Road-C-40-5w8.ps King_of_the_Road-C-40-5w8.pdf
	Ln.sh King_of_the_Road-C-40-5w8.pdf img/

# Long Way to Tipperary
Long_Way_to_Tipperary: Long_Way_to_Tipperary-D,G-16-6W16
Long_Way_to_Tipperary-D,G-16-6W16= \
	song/Long_Way_to_Tipperary-G-24-6w10.abc \
	march/Long_Way_to_Tipperary-G-24-3.abc
Long_Way_to_Tipperary-D,G-16-6W16: Long_Way_to_Tipperary-D,G-16-6W16.abc Long_Way_to_Tipperary-D,G-16-6W16.pdf
Long_Way_to_Tipperary-D,G-16-6W16.abc: $(Long_Way_to_Tipperary-D,G-16-6W16)
	abcjoin +s $(Long_Way_to_Tipperary-D,G-16-6W16) >Long_Way_to_Tipperary-D,G-16-6W16.abc
	ln -f Long_Way_to_Tipperary-D,G-16-6W16.abc march/
Long_Way_to_Tipperary-D,G-16-6W16.ps: Long_Way_to_Tipperary-D,G-16-6W16.abc fmt/_75.fmt
	$(a2p) +Ffmt/_75.fmt Long_Way_to_Tipperary-D,G-16-6W16.abc \
	|PShdr Long_Way_to_Tipperary-D,G-16-6W16 '' Long_Way_to_Tipperary-D,G-16-6W16 \
	|PSftr %D $U/ %D >Long_Way_to_Tipperary-D,G-16-6W16.ps
Long_Way_to_Tipperary-D,G-16-6W16.pdf: Long_Way_to_Tipperary-D,G-16-6W16.ps
	ps2pdf Long_Way_to_Tipperary-D,G-16-6W16.ps Long_Way_to_Tipperary-D,G-16-6W16.pdf
	ln -f Long_Way_to_Tipperary-D,G-16-6W16.pdf img/Long_Way_to_Tipperary.pdf

# Minstrel_Boy (several sets)
Minstrel_Boy: Minstrel_Boy-hilo-C-16-4 Minstrel_Boy-D,G-16-6W16 Minstrel_Boy-D,C-16-6W16

# Minstrel_Boy high/low C
Minstrel_Boy-hilo-C-16-4=  hdr/Minstrel_Boy-hilo-C-16-4.hdr \
	Minstrel_Boy/Minstrel_Boy-high-C-16-2.abc \
	Minstrel_Boy/Minstrel_Boy-low-C-16-2.abc \
	ftr/Minstrel_Boy-hilo-C-16-4.ftr
Minstrel_Boy-hilo-C-16-4: Minstrel_Boy-hilo-C-16-4.abc Minstrel_Boy-hilo-C-16-4.pdf
Minstrel_Boy-hilo-C-16-4.abc: $(Minstrel_Boy-hilo-C-16-4)
	abcjoin +s $(Minstrel_Boy-hilo-C-16-4) >Minstrel_Boy-hilo-C-16-4.abc
	ln -f Minstrel_Boy-hilo-C-16-4.abc march/
Minstrel_Boy-hilo-C-16-4.ps: Minstrel_Boy-hilo-C-16-4.abc fmt/_80.fmt
	$(a2p) +Ffmt/_80.fmt Minstrel_Boy-hilo-C-16-4.abc \
	|PShdr Minstrel_Boy-hilo-C-16-4 '' Minstrel_Boy-hilo-C-16-4 \
	|PSftr %D $U/ %D >Minstrel_Boy-hilo-C-16-4.ps
Minstrel_Boy-hilo-C-16-4.pdf: Minstrel_Boy-hilo-C-16-4.ps
	ps2pdf Minstrel_Boy-hilo-C-16-4.ps Minstrel_Boy-hilo-C-16-4.pdf
	ln -f Minstrel_Boy-hilo-C-16-4.pdf img/Minstrel_Boy.pdf
hdr/Minstrel_Boy-hilo-C-16-4.hdr: ; touch hdr/Minstrel_Boy-hilo-C-16-4.hdr
ftr/Minstrel_Boy-hilo-C-16-4.ftr: ; touch ftr/Minstrel_Boy-hilo-C-16-4.ftr

# Minstrel_Boy  D,G
Minstrel_Boy-D,G-16-6W16= \
	Minstrel_Boy/Minstrel_Boy-D-16-4W16.abc \
	Minstrel_Boy/Minstrel_Boy-G-16-2.abc
Minstrel_Boy-D,G-16-6W16: Minstrel_Boy-D,G-16-6W16.abc Minstrel_Boy-D,G-16-6W16.pdf
Minstrel_Boy-D,G-16-6W16.abc: $(Minstrel_Boy-D,G-16-6W16)
	abcjoin +s $(Minstrel_Boy-D,G-16-6W16) >Minstrel_Boy-D,G-16-6W16.abc
	ln -f Minstrel_Boy-D,G-16-6W16.abc march/
Minstrel_Boy-D,G-16-6W16.ps: Minstrel_Boy-D,G-16-6W16.abc fmt/_80.fmt
	$(a2p) +Ffmt/_80.fmt Minstrel_Boy-D,G-16-6W16.abc \
	|PShdr Minstrel_Boy-D,G-16-6W16 '' Minstrel_Boy-D,G-16-6W16 \
	|PSftr %D $U/ %D >Minstrel_Boy-D,G-16-6W16.ps
Minstrel_Boy-D,G-16-6W16.pdf: Minstrel_Boy-D,G-16-6W16.ps
	ps2pdf Minstrel_Boy-D,G-16-6W16.ps Minstrel_Boy-D,G-16-6W16.pdf
	ln -f Minstrel_Boy-D,G-16-6W16.pdf img/Minstrel_Boy.pdf

# Minstrel_Boy  D, C
Minstrel_Boy-D,C-16-6W16= \
	Minstrel_Boy/Minstrel_Boy-D-16-4W16.abc \
	Minstrel_Boy/Minstrel_Boy-low-C-16-2.abc
Minstrel_Boy-D,C-16-6W16: Minstrel_Boy-D,C-16-6W16.abc Minstrel_Boy-D,C-16-6W16.pdf
Minstrel_Boy-D,C-16-6W16.abc: $(Minstrel_Boy-D,C-16-6W16)
	abcjoin +s $(Minstrel_Boy-D,C-16-6W16) >Minstrel_Boy-D,C-16-6W16.abc
	ln -f Minstrel_Boy-D,C-16-6W16.abc march/
Minstrel_Boy-D,C-16-6W16.ps: Minstrel_Boy-D,C-16-6W16.abc fmt/_80.fmt
	$(a2p) +Ffmt/_80.fmt Minstrel_Boy-D,C-16-6W16.abc \
	|PShdr Minstrel_Boy-D,C-16-6W16 '' Minstrel_Boy-D,C-16-6W16 \
	|PSftr %D $U/ %D >Minstrel_Boy-D,C-16-6W16.ps
Minstrel_Boy-D,C-16-6W16.pdf: Minstrel_Boy-D,C-16-6W16.ps
	ps2pdf Minstrel_Boy-D,C-16-6W16.ps Minstrel_Boy-D,C-16-6W16.pdf
	ln -f Minstrel_Boy-D,C-16-6W16.pdf img/Minstrel_Boy.pdf

# Parting Glass	# Single-tune page
Parting_Glass: song/Parting_Glass.abc song/Parting_Glass.pdf
Parting_Glass= \
	song/Parting_Glass-Em-16-4w12.abc sep5x2 \
	song/Parting_Glass-Dm-16-3.abc sep5x2 \
	song/Parting_Glass-Am-16-3.abc
song/Parting_Glass.abc: $(Parting_Glass) # hdr/Parting_Glass.hdr
	abcjoin $(Parting_Glass) >song/Parting_Glass.abc
song/Parting_Glass.ps: song/Parting_Glass.abc fmt/_75.fmt
	$(a2p) song/Parting_Glass.abc +Ffmt/_75 \
	|PShdr 'Parting Glass' '' 'Parting Glass' \
	|PSftr %D $U/ %D >song/Parting_Glass.ps
song/Parting_Glass.pdf: song/Parting_Glass.ps
	ps2pdf song/Parting_Glass.ps img/Parting_Glass.pdf

# Roddy_McCorley
Roddy_McCorley: Roddy_McCorley-G,D-16-8W16
Roddy_McCorley-G,D-16-8W16= Roddy_McCorley/Roddy_McCorley-G-16-4w16.abc Roddy_McCorley/Roddy_McCorley-D-16-2.abc
Roddy_McCorley-G,D-16-8W16: Roddy_McCorley-G,D-16-8W16.abc Roddy_McCorley-G,D-16-8W16.ps Roddy_McCorley-G,D-16-8W16.pdf
Roddy_McCorley-G,D-16-8W16.abc: $(Roddy_McCorley-G,D-16-8W16)
	abcjoin +s $(Roddy_McCorley-G,D-16-8W16) >Roddy_McCorley-G,D-16-8W16.abc
	ln -f Roddy_McCorley-G,D-16-8W16.abc march/
Roddy_McCorley-G,D-16-8W16.ps: Roddy_McCorley-G,D-16-8W16.abc fmt/_70.fmt
	$(a2p) +Ffmt/_70.fmt Roddy_McCorley-G,D-16-8W16.abc \
	|PShdr Roddy_McCorley-G,D-16-8W16 '' Roddy_McCorley-G,D-16-8W16 \
	|PSftr %D $U/ %D >Roddy_McCorley-G,D-16-8W16.ps
Roddy_McCorley-G,D-16-8W16.pdf: Roddy_McCorley-G,D-16-8W16.ps
	ps2pdf Roddy_McCorley-G,D-16-8W16.ps Roddy_McCorley-G,D-16-8W16.pdf
	ln -f Roddy_McCorley-G,D-16-8W16.pdf img/Roddy_McCorley.pdf

# Scotland the Brave Song
Scotland_the_Brave_Song= \
	Scotland_the_Brave/Scotland_the_Brave_Song-D-32-4w8.abc \
	Scotland_the_Brave/Scotland_the_Brave-G-32-3.abc \
	Scotland_the_Brave/Scotland_the_Brave_SS-A-32-3.abc
Scotland_the_Brave_Song: Scotland_the_Brave_Song.abc Scotland_the_Brave_Song.ps Scotland_the_Brave_Song.pdf
Scotland_the_Brave_Song.abc: hdr/Scotland_the_Brave_Song.hdr $(Scotland_the_Brave_Song)
	abcjoin $(Scotland_the_Brave_Song) >Scotland_the_Brave_Song.abc
Scotland_the_Brave_Song.ps: Scotland_the_Brave_Song.abc fmt/Scotland_the_Brave_Song.fmt
	$(a2p) Scotland_the_Brave_Song.abc +Ffmt/Scotland_the_Brave_Song.fmt \
	|PShdr 'Scotland the Brave Song' '' 'Scotland the Brave Song' \
	|PSftr %D $U/ %D >Scotland_the_Brave_Song.ps
Scotland_the_Brave_Song.pdf: Scotland_the_Brave_Song.ps
	ps2pdf Scotland_the_Brave_Song.ps Scotland_the_Brave_Song.pdf

# Skye Boat Song
Skye_Boat_Song= \
	song/Skye_Boat_Song-A-32-2w10.abc \
	Skye_Boat_Song/Skye_Boat_Song-G-16-2.abc \
	Skye_Boat_Song/Skye_Boat_Song-C-16-2.abc \
	Skye_Boat_Song/Skye_Boat_Song-D-16-2.abc
Skye_Boat_Song: Skye_Boat_Song.abc Skye_Boat_Song.ps Skye_Boat_Song.pdf
Skye_Boat_Song.abc: hdr/Skye_Boat_Song.hdr $(Skye_Boat_Song)
	abcjoin $(Skye_Boat_Song) >Skye_Boat_Song.abc
Skye_Boat_Song.ps: Skye_Boat_Song.abc fmt/Set.fmt
	$(a2p) Skye_Boat_Song.abc +Ffmt/Set.fmt \
	|PShdr 'Skye_Boat_Song' '' 'Skye_Boat_Song' \
	|PSftr %D $U/ %D >Skye_Boat_Song.ps
Skye_Boat_Song.pdf: Skye_Boat_Song.ps
	ps2pdf Skye_Boat_Song.ps Skye_Boat_Song.pdf

# Star of the County Down march + waltz
Star_of_the_County_Down= \
	march/Star_of_the_County_Down_march-Em-16-3.abc sep5 \
	march/Star_of_the_County_Down_march-Am-16-3.abc sep5x2 \
	waltz/Star_of_the_County_Down_waltz_Em-32-3.abc sep5 \
	waltz/Star_of_the_County_Down_waltz_Am-32-3.abc
Star_of_the_County_Down: Star_of_the_County_Down.abc Star_of_the_County_Down.ps Star_of_the_County_Down.pdf
Star_of_the_County_Down.abc: $(Star_of_the_County_Down) # hdr/Star_of_the_County_Down.hdr
	abcjoin +C $(Star_of_the_County_Down) >Star_of_the_County_Down.abc
Star_of_the_County_Down.ps: Star_of_the_County_Down.abc fmt/_75.fmt
	$(a2p) Star_of_the_County_Down.abc +Ffmt/_75 \
	|PShdr Star_of_the_County_Down '' Star_of_the_County_Down \
	|PSftr %D $U/ %D >Star_of_the_County_Down.ps
Star_of_the_County_Down.pdf: Star_of_the_County_Down.ps
	ps2pdf Star_of_the_County_Down.ps Star_of_the_County_Down.pdf

# Whiskey in the Jar in 4 keys
Whiskey_in_the_Jar: Whiskey_in_the_Jar-A,D,G,C-19-12
Whiskey_in_the_Jar-A,D,G,C-19-12= hdr/Whiskey_in_the_Jar-A,D,G,C-19-12.hdr \
	Whiskey_in_the_Jar/Whiskey_in_the_Jar-A-24-3.abc \
	Whiskey_in_the_Jar/Whiskey_in_the_Jar-D-24-3.abc \
	Whiskey_in_the_Jar/Whiskey_in_the_Jar-G-24-3.abc \
	Whiskey_in_the_Jar/Whiskey_in_the_Jar-C-24-3.abc \
	ftr/Whiskey_in_the_Jar-A,D,G,C-19-12.ftr
Whiskey_in_the_Jar-A,D,G,C-19-12: Whiskey_in_the_Jar-A,D,G,C-19-12.abc Whiskey_in_the_Jar-A,D,G,C-19-12.ps Whiskey_in_the_Jar-A,D,G,C-19-12.pdf
Whiskey_in_the_Jar-A,D,G,C-19-12.abc: $(Whiskey_in_the_Jar-A,D,G,C-19-12)
	abcjoin +s $(Whiskey_in_the_Jar-A,D,G,C-19-12) >Whiskey_in_the_Jar-A,D,G,C-19-12.abc
	ln -f Whiskey_in_the_Jar-A,D,G,C-19-12.abc song/
Whiskey_in_the_Jar-A,D,G,C-19-12.ps: Whiskey_in_the_Jar-A,D,G,C-19-12.abc fmt/_75.fmt
	$(a2p) +Ffmt/_75.fmt Whiskey_in_the_Jar-A,D,G,C-19-12.abc \
	|PShdr 'Whiskey in the Jar' '' 'Whiskey in the Jar' \
	|PSftr %D $U/ %D >Whiskey_in_the_Jar-A,D,G,C-19-12.ps
Whiskey_in_the_Jar-A,D,G,C-19-12.pdf: Whiskey_in_the_Jar-A,D,G,C-19-12.ps
	ps2pdf Whiskey_in_the_Jar-A,D,G,C-19-12.ps Whiskey_in_the_Jar-A,D,G,C-19-12.pdf
	ln -f Whiskey_in_the_Jar-A,D,G,C-19-12.pdf img/Whiskey_in_the_Jar.pdf
hdr/Whiskey_in_the_Jar-A,D,G,C-19-12.hdr: ; touch hdr/Whiskey_in_the_Jar-A,D,G,C-19-12.hdr
ftr/Whiskey_in_the_Jar-A,D,G,C-19-12.ftr: ; touch ftr/Whiskey_in_the_Jar-A,D,G,C-19-12.ftr

# # Wildwood Flower
# Wildwood_Flower: Wildwood_Flower-A,D-19-6w
# Wildwood_Flower-A,D-19-6w= Wildwood_Flower/Wildwood_Flower-A-19-4w.abc \
# 	Wildwood_Flower/Wildwood_Flower-D-19-2.abc
# Wildwood_Flower-A,D-19-6w: Wildwood_Flower-A,D-19-6w.abc Wildwood_Flower-A,D-19-6w.ps Wildwood_Flower-A,D-19-6w.pdf
# Wildwood_Flower-A,D-19-6w.abc: $(Wildwood_Flower-A,D-19-6w)
# 	abcjoin +s $(Wildwood_Flower-A,D-19-6w) >Wildwood_Flower-A,D-19-6w.abc
# 	ln -f Wildwood_Flower-A,D-19-6w.abc song/
# Wildwood_Flower-A,D-19-6w.ps: Wildwood_Flower-A,D-19-6w.abc fmt/_70.fmt
# 	$(a2p) +Ffmt/_70.fmt Wildwood_Flower-A,D-19-6w.abc \
# 	|PShdr Wildwood_Flower-A,D '' Wildwood_Flower-A,D \
# 	|PSftr %D $U/ %D >Wildwood_Flower-A,D-19-6w.ps
# Wildwood_Flower-A,D-19-6w.pdf: Wildwood_Flower-A,D-19-6w.ps
# 	ps2pdf Wildwood_Flower-A,D-19-6w.ps Wildwood_Flower-A,D-19-6w.pdf
# 	ln -f Wildwood_Flower-A,D-19-6w.pdf img/Wildwood_Flower.pdf

# Wildwood Flower
Wildwood_Flower: Wildwood_Flower-A,D-19-6w
Wildwood_Flower-A,D-19-6w= Wildwood_Flower/Wildwood_Flower-A-19-4w.abc \
	Wildwood_Flower/Wildwood_Flower-D-19-2.abc
Wildwood_Flower-A,D-19-6w: Wildwood_Flower-A,D-19-6w.abc Wildwood_Flower-A,D-19-6w.ps Wildwood_Flower-A,D-19-6w.pdf
Wildwood_Flower-A,D-19-6w.abc: $(Wildwood_Flower-A,D-19-6w)
	abcjoin +s $(Wildwood_Flower-A,D-19-6w) >Wildwood_Flower-A,D-19-6w.abc
	ln -f Wildwood_Flower-A,D-19-6w.abc song/
Wildwood_Flower-A,D-19-6w.ps: Wildwood_Flower-A,D-19-6w.abc fmt/_70.fmt
	$(a2p) +Ffmt/_70.fmt Wildwood_Flower-A,D-19-6w.abc \
	|PShdr Wildwood_Flower-A,D '' Wildwood_Flower-A,D \
	|PSftr %D $U/ %D >Wildwood_Flower-A,D-19-6w.ps
Wildwood_Flower-A,D-19-6w.pdf: Wildwood_Flower-A,D-19-6w.ps
	ps2pdf Wildwood_Flower-A,D-19-6w.ps Wildwood_Flower-A,D-19-6w.pdf
	ln -f Wildwood_Flower-A,D-19-6w.pdf img/Wildwood_Flower.pdf
