

all: \
	Antiochus ComeThouFount ForTheBeautyOfTheEarth HowGreatThouArt IComeWithJoy JesusBidsUsShine MaozTsur \
	OyChanukah 

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

neat: ; /bin/rm -f *-
clean: neat; /bin/rm -f new.* *.ps *.pdf
clobber: clean;

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

# xx yy zz
xxyyzz: xxyyzz_kk

# xx yy zz [kk]
xxyyzz_kk: xxyyzz_kk.ps xxyyzz_kk.pdf
xxyyzz_kk.ps: xxyyzz_kk.abc fmt/_70.fmt
	abcm2ps -n -F fmt/_70 xxyyzz_kk.abc -O xxyyzz_kk.ps
xxyyzz_kk.pdf: xxyyzz_kk.ps
	ps2pdf xxyyzz_kk.ps

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

# Antiochus
Antiochus: Antiochus_Gm

# Antiochus [Gm]
Antiochus_Gm: Antiochus_Gm.abc Antiochus_Gm.pdf
Antiochus_Gm.ps: Antiochus_Gm.abc fmt/_70.fmt
	abcm2ps -n -F fmt/_70 Antiochus_Gm.abc -O Antiochus_Gm.ps
Antiochus_Gm.pdf: Antiochus_Gm.ps
	ps2pdf Antiochus_Gm.ps

# Come Thou Fount
ComeThouFount: ComeThouFount_Eb

# Come Thou Fount [Eb]
ComeThouFount_Eb: ComeThouFount_Eb.ps ComeThouFount_Eb.pdf
ComeThouFount_Eb.ps: ComeThouFount_Eb.abc fmt/_70.fmt
	abcm2ps -n -F fmt/_70 ComeThouFount_Eb.abc -O ComeThouFount_Eb.ps
ComeThouFount_Eb.pdf: ComeThouFount_Eb.ps
	ps2pdf ComeThouFount_Eb.ps

# For the Beauty of the Earth -- formatted by jcabc2ps and abcm2ps
ForTheBeauthOfTheEarth: ForTheBeauthOfTheEarth.abc \
	ForTheBeauthOfTheEarth1.ps ForTheBeauthOfTheEarth1.pdf \
	ForTheBeauthOfTheEarth2.ps ForTheBeauthOfTheEarth2.pdf
ForTheBeauthOfTheEarth= \
	song/For_the_Beauty_of_The_Earth_G.abc
ForTheBeauthOfTheEarth.abc: $(ForTheBeauthOfTheEarth)
	abcjoin +S2 $(ForTheBeauthOfTheEarth) > ForTheBeauthOfTheEarth.abc
ForTheBeauthOfTheEarth1.ps: ForTheBeauthOfTheEarth.abc fmt/_80.fmt
	jcabc2ps +Ffmt/_80 ForTheBeauthOfTheEarth.abc >ForTheBeauthOfTheEarth1.ps
ForTheBeauthOfTheEarth1.pdf: ForTheBeauthOfTheEarth1.ps
	ps2pdf ForTheBeauthOfTheEarth1.ps ForTheBeauthOfTheEarth1.pdf
ForTheBeauthOfTheEarth2.ps: ForTheBeauthOfTheEarth.abc fmt/_80.fmt
	abcm2ps -F fmt/_80 ForTheBeauthOfTheEarth.abc -O ForTheBeauthOfTheEarth2.ps
ForTheBeauthOfTheEarth2.pdf: ForTheBeauthOfTheEarth2.ps
	ps2pdf ForTheBeauthOfTheEarth2.ps ForTheBeauthOfTheEarth2.pdf

# I Come With Joy
IComeWithJoy: IComeWithJoy.abc IComeWithJoy.ps IComeWithJoy.pdf
IComeWithJoy= \
	song/I_Come_With_Joy-C_w-10-4.abc \
	tune/I_Come_With_Joy-C-10-4.abc
IComeWithJoy.abc: $(IComeWithJoy)
	abcjoin +S2 $(IComeWithJoy) > IComeWithJoy.abc
IComeWithJoy.ps: IComeWithJoy.abc fmt/_80.fmt
#	abcm2ps -F fmt/_80 IComeWithJoy.abc -O IComeWithJoy.ps
	jcabc2ps +Ffmt/_80 IComeWithJoy.abc >IComeWithJoy.ps
IComeWithJoy.pdf: IComeWithJoy.ps
	ps2pdf IComeWithJoy.ps IComeWithJoy.pdf

# Jesus Bids Us Shine
JesusBidsUsShine: JesusBidsUsShine.abc JesusBidsUsShine.ps JesusBidsUsShine.pdf
JesusBidsUsShine= tune/JesusBidsUsShine_G.abc song/JesusBidsUsShine_Gw_4V.abc
JesusBidsUsShine.abc: $(JesusBidsUsShine)
	abcjoin +S2 $(JesusBidsUsShine) > JesusBidsUsShine.abc
JesusBidsUsShine.ps: JesusBidsUsShine.abc fmt/_65.fmt
	abcm2ps -F fmt/_65 JesusBidsUsShine.abc -O JesusBidsUsShine.ps
JesusBidsUsShine.pdf: JesusBidsUsShine.ps
	ps2pdf JesusBidsUsShine.ps

# How Great Thou Art
HowGreatThouArt: HowGreatThouArt.ps HowGreatThouArt.pdf
HowGreatThouArt= song/How_Great_Thou_Art_Bb.abc
HowGreatThouArt.abc: $(HowGreatThouArt) fmt/HowGreatThouArt.fmt
	abcjoin +S2 song/How_Great_Thou_Art_Bb.abc >HowGreatThouArt.abc
HowGreatThouArt.ps: HowGreatThouArt.abc fmt/HowGreatThouArt.fmt
	abcm2ps -F fmt/HowGreatThouArt HowGreatThouArt.abc -O HowGreatThouArt.ps
HowGreatThouArt.pdf: HowGreatThouArt.ps
	ps2pdf HowGreatThouArt.ps

# Maoz Tsur
MaozTsur: MaozTsur_F

# Maoz Tsur [F]
MaozTsur_F: MaozTsur_F.ps MaozTsur_F.pdf
MaozTsur_F.ps: MaozTsur_F.abc fmt/_70.fmt
	abcm2ps -n -F fmt/_70 MaozTsur_F.abc -O MaozTsur_F.ps
MaozTsur_F.pdf: MaozTsur_F.ps
	ps2pdf MaozTsur_F.ps

# Oy Chanukah
OyChanukah: OyChanukah_Dm

# Oy Chanukah [Dm]
OyChanukah_Dm: OyChanukah_Dm.ps OyChanukah_Dm.pdf
OyChanukah_Dm.ps: OyChanukah_Dm.abc fmt/_70.fmt
	abcm2ps -j 0 -n -F fmt/_70 OyChanukah_Dm.abc -O OyChanukah_Dm.ps
OyChanukah_Dm.pdf: OyChanukah_Dm.ps
	ps2pdf OyChanukah_Dm.ps

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