#
# Makefile for HLaTeX fonts
# -------------------------
#
# created by koaunghi.un@student.uni-tuebingen.de <1994/08/12>.
#	modified for version 0.93 <1995/11/22>.
#	modified with help of Wonkoo Kim <wkim+@pitt.edu> <1995/04/10>.
#	updated for version 0.96 <1997/03/04>
#	completely new for version 0.98 <1998/06/07>
#
# To make PK fonts, you must first install the MF files in the TeX's
# fonts directory. If you doesn't yet have installed them, get the sources
# by anonymous ftp from your nearest CTAN site.
#	~ftp/tex-archive/fonts/korean/HLaTeX
# You need at least \HLaTeX-0.96 to use these fonts.
#	 common.tar.gz
#	 hanja-gothic.tar.gz
#	 hanja-gungseo.tar.gz
#	 hanja-myoungjo.tar.gz
#	 hsym.tar.gz
#	 jamo.tar.gz
#	 taza.tar.gz
#	 wsbm.tar.gz
#	 wsgr.tar.gz
#	 wsgs.tar.gz
#	 wsgt.tar.gz
#	 wsmg.tar.gz
#	 wsmj.tar.gz
#	 wsol.tar.gz
#	 wspg.tar.gz
#	 wspn.tar.gz
#	 wssm.tar.gz
#	 wsyt.tar.gz
#
# "make" or "make default" will create myoungjo, gothic, taza fonts.
#
# If you want to make additional fonts, you should do "make extra"
# for saemyoungjo, gungseo, graphic, mokgak, yetgul, bom, pen, outline,
# pilgi, jamomyoungjo, jamogothic, jamonovel, jamosora fonts.
#
# "make all" creates all the above fonts.
#

SHELL=/bin/sh

series="m"

# If you intend to use pre-made bfseries fonts uncomment following line.
# In this case, you may use option "hardbold" in your \HLaTeX document.
# Please note, \HLaTeX is capable of making bfseries fonts on the fly
# via TeX macro.

#series="m bx"

all:    default extra

.SILENT:

default: mkhfonts.tex
	for font in mj gt tt ; do \
	for series in $(series) ; do \
	for shape in n sl it ; do \
	   (  echo "$${font}" > .in ; echo "$${series}" >> .in ; \
	      echo "$${shape}" >> .in ; latex mkhfonts.tex < .in && \
	      dvips -o /dev/null mkhfonts.dvi ) || \
           exit 1 ; \
	   rm -fr .in; \
	done ; \
	done ; \
	done ;
	rm -f mkhfonts.dvi mkhfonts.log mkhfonts.aux

extra: mkhfonts.tex
	for font in sm gs gr mg yt bm pn ol pg mmj mgt mnv msr ; do \
	for series in $(series) ; do \
	for shape in n sl it ; do \
	   (  echo "$${font}" > .in ; echo "$${series}" >> .in ; \
	      echo "$${shape}" >> .in ; latex mkhfonts.tex < .in && \
	      dvips -o /dev/null mkhfonts.dvi ) || \
           exit 1 ; \
	   rm -fr .in; \
	done ; \
	done ; \
	done ;
	rm -f mkhfonts.dvi mkhfonts.log mkhfonts.aux

