# This file is part of the TeluguTeX Software Package.
#Copyright (c) 1991 Lakshmankumar Mukkavilli
#
#The TeluguTeX Software Package is distributed in the hope that
#it will be useful,but WITHOUT ANY WARRANTY.  No author or distributor
#accepts responsibility to anyone for the consequences of using it
#or for whether it serves any particular purpose or works at all,
#unless he says so in writing.  Refer to the TeluguTeX Software Package
#General Public License for full details.
#
#Everyone is granted permission to copy, modify and redistribute
#the TeluguTeX Software Package, but only under the conditions described in the
#TeluguTeX Software Package General Public License.   A copy of this license is
#supposed to have been given to you along with TeluguTeX Software Package so you
#can know your rights and responsibilities.  It should be in a
#file named CopyrightLong.  Among other things, the copyright notice
#and this notice must be preserved on all copies.  
########
# This file contains commands to generate fonts for TeluguTeX.
# There are two things you should do before you start generating
# fonts.
# 1. Change DPI to reflect the charracteristics of the output
#    device.
# 2. decide if you want all the fonts listed in 'all' target. See
#    the README file. If you want a subset then fillin myfonts target
#    with the fonts that want to generate. Suppose I only want tel10,
#    tel11 and tel12 fonts. Then myfonts target would look like:
#myfonts :teloffset tel10 tel10nx tel10ny tel10b\
#         teloffset tel11 tel11nx tel11ny tel11b\
#         teloffset tel12 tel12nx tel12ny tel12b 
#         
#     teloffset is always needed.
#
#     It takes a longtime to generate telspa, telspb and telspc fonts. 
#
DPI=300
makefont=awk '/%$@%/,/%%/{print}' telfonts.awk>$@.mf;\
         mf $@;\
         gftopk $@.$(DPI)gf;\
         rm $@.log;\
         rm $@.mf;\
         rm $@.$(DPI)gf;
#tel10   :;awk '/%$@%/,/%%/{print}' telfonts.awk>$@.mf;

all     :teloffset tel10 tel10nx tel10ny tel10b\
         tel10s tel11 tel11nx tel11ny \
         tel11b tel11s tel12 tel12nx tel12ny tel12b \
         tel12s #tel15 tel15b tel15s tel18 tel18b tel18s tel20 \
#         tel20b tel20s tel25 tel25b tel25s tel30 tel30s \
#         tel35 tel35s tel40 tel40s tel55 tel55s \
#         tel72 tel100 tel172 telspa telspb telspc
 

teloffset  :;awk '/%$@%/,/%%/{print}' telfonts.awk>$@.mf;\
         mf $@;\
         grep '^\\' $@.log>tloffsets.tex;\
         rm $@.log;\
         rm $@.mf;

tel2602  :;awk '/%$@%/,/%%/{print}' telfonts.awk>$@.mf;\
         mf $@;\
         gftodvi $@.2602gf;\
         rm $@.log;\
         rm $@.2602gf;\
         rm $@.mf;

tel2602t  :;awk '/%$@%/,/%%/{print}' telfonts.awk>$@.mf;\
         mf $@;\
         rm $@.log;\
         rm $@.mf;

tel10   :;$(makefont)

tel10nx :;$(makefont)

tel10ny :;$(makefont)

tel10b   :;$(makefont)

tel10s   :;$(makefont)

tel11   :;$(makefont)

tel11nx :;$(makefont)

tel11ny :;$(makefont)

tel11b   :;$(makefont)

tel11s   :;$(makefont)

tel12   :;$(makefont)

tel12nx :;$(makefont)

tel12ny :;$(makefont)

tel12b   :;$(makefont)

tel12s   :;$(makefont)

tel15   :;$(makefont)

tel15b   :;$(makefont)

tel15s   :;$(makefont)

tel18   :;$(makefont)

tel18b   :;$(makefont)

tel18s   :;$(makefont)

tel20   :;$(makefont)

tel20b   :;$(makefont)

tel20s   :;$(makefont)

tel25   :;$(makefont)

tel25b   :;$(makefont)

tel25s   :;$(makefont)

tel30   :;$(makefont)

tel30s   :;$(makefont)

tel35   :;$(makefont)

tel35s   :;$(makefont)

tel40   :;$(makefont)

tel40s   :;$(makefont)

tel55   :;$(makefont)

tel55s   :;$(makefont)

tel72    :;$(makefont)

tel100   :;$(makefont)

tel172   :;$(makefont)

telspa   :;$(makefont)

telspb   :;$(makefont)

telspc   :;$(makefont)