1 1.1 christos # Copyright (C) 1989-2000, 2002, 2003 Free Software Foundation, Inc. 2 1.1 christos # Written by James Clark (jjc (at] jclark.com) 3 1.1 christos # 4 1.1 christos # This file is part of groff. 5 1.1 christos # 6 1.1 christos # groff is free software; you can redistribute it and/or modify it under 7 1.1 christos # the terms of the GNU General Public License as published by the Free 8 1.1 christos # Software Foundation; either version 2, or (at your option) any later 9 1.1 christos # version. 10 1.1 christos # 11 1.1 christos # groff is distributed in the hope that it will be useful, but WITHOUT ANY 12 1.1 christos # WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 1.1 christos # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 1.1 christos # for more details. 15 1.1 christos # 16 1.1 christos # You should have received a copy of the GNU General Public License along 17 1.1 christos # with groff; see the file COPYING. If not, write to the Free Software 18 1.1 christos # Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. 19 1.1 christos 20 1.1 christos # This is set up so you can do 21 1.1 christos # make -f generate/Makefile 22 1.1 christos # in the parent directory of this directory. 23 1.1 christos 24 1.1 christos # The following line is required for DOS/Windows systems, since 25 1.1 christos # this Makefile needs a Unixy shell to run. 26 1.1 christos SHELL = /bin/sh 27 1.1 christos 28 1.1 christos # Directory containing AFM files. Must not be current directory. 29 1.1 christos # Either long names (eg Times-Roman.afm) or short names (eg timesr.afm) 30 1.1 christos # may be used. See the afmname script. 31 1.1 christos afmdir=/usr/local/lib/afm 32 1.1 christos srcdir=generate 33 1.1 christos 34 1.1 christos SPECIALFONTS=S 35 1.1 christos DINGBATSFONTS=ZD ZDR 36 1.1 christos GREEKFONTS=SS 37 1.1 christos TEXTFONTS=AB ABI AI AR BMB BMBI BMI BMR CB CBI CI CR HB HBI HI HR HNB HNBI \ 38 1.1 christos HNI HNR NB NBI NI NR PB PBI PI PR TB TBI TI TR ZCMI 39 1.1 christos 40 1.1 christos FONTS=$(TEXTFONTS) $(SPECIALFONTS) $(GREEKFONTS) $(DINGBATSFONTS) EURO 41 1.1 christos 42 1.1 christos DESC=$(srcdir)/../DESC 43 1.1 christos AFMTODIT=afmtodit -d$(DESC) 44 1.1 christos IFLAG=-i 50 45 1.1 christos RFLAG=-i 0 -m 46 1.1 christos NOLIGFLAG=-n 47 1.1 christos TEXTENC=$(srcdir)/../text.enc 48 1.1 christos EFLAG=-e $(TEXTENC) 49 1.1 christos TEXTMAP=$(srcdir)/textmap 50 1.1 christos AFMNAME=$(srcdir)/afmname 51 1.1 christos 52 1.1 christos all: $(FONTS) 53 1.1 christos 54 1.1 christos TR: 55 1.1 christos $(AFMTODIT) $(EFLAG) $(RFLAG) \ 56 1.1 christos `$(AFMNAME) $(afmdir)/Times-Roman.afm` $(TEXTMAP) $@ 57 1.1 christos 58 1.1 christos TB: 59 1.1 christos $(AFMTODIT) $(EFLAG) $(RFLAG) \ 60 1.1 christos `$(AFMNAME) $(afmdir)/Times-Bold.afm` $(TEXTMAP) $@ 61 1.1 christos 62 1.1 christos TI: 63 1.1 christos $(AFMTODIT) $(EFLAG) $(IFLAG) -a 7 \ 64 1.1 christos `$(AFMNAME) $(afmdir)/Times-Italic.afm` $(TEXTMAP) $@ 65 1.1 christos 66 1.1 christos TBI: 67 1.1 christos $(AFMTODIT) $(EFLAG) $(IFLAG) \ 68 1.1 christos `$(AFMNAME) $(afmdir)/Times-BoldItalic.afm` $(TEXTMAP) $@ 69 1.1 christos 70 1.1 christos HR: 71 1.1 christos $(AFMTODIT) $(EFLAG) $(RFLAG) \ 72 1.1 christos `$(AFMNAME) $(afmdir)/Helvetica.afm` $(TEXTMAP) $@ 73 1.1 christos 74 1.1 christos HB: 75 1.1 christos $(AFMTODIT) $(EFLAG) $(RFLAG) \ 76 1.1 christos `$(AFMNAME) $(afmdir)/Helvetica-Bold.afm` $(TEXTMAP) $@ 77 1.1 christos 78 1.1 christos HI: 79 1.1 christos $(AFMTODIT) $(EFLAG) $(IFLAG) \ 80 1.1 christos `$(AFMNAME) $(afmdir)/Helvetica-Oblique.afm` $(TEXTMAP) $@ 81 1.1 christos 82 1.1 christos HBI: 83 1.1 christos $(AFMTODIT) $(EFLAG) $(IFLAG) \ 84 1.1 christos `$(AFMNAME) $(afmdir)/Helvetica-BoldOblique.afm` $(TEXTMAP) $@ 85 1.1 christos 86 1.1 christos CR: 87 1.1 christos $(AFMTODIT) $(NOLIGFLAG) $(EFLAG) $(RFLAG) \ 88 1.1 christos `$(AFMNAME) $(afmdir)/Courier.afm` $(TEXTMAP) $@ 89 1.1 christos 90 1.1 christos CB: 91 1.1 christos $(AFMTODIT) $(NOLIGFLAG) $(EFLAG) $(RFLAG) \ 92 1.1 christos `$(AFMNAME) $(afmdir)/Courier-Bold.afm` $(TEXTMAP) $@ 93 1.1 christos 94 1.1 christos CI: 95 1.1 christos $(AFMTODIT) $(NOLIGFLAG) $(EFLAG) $(IFLAG) \ 96 1.1 christos `$(AFMNAME) $(afmdir)/Courier-Oblique.afm` $(TEXTMAP) $@ 97 1.1 christos 98 1.1 christos CBI: 99 1.1 christos $(AFMTODIT) $(NOLIGFLAG) $(EFLAG) $(IFLAG) \ 100 1.1 christos `$(AFMNAME) $(afmdir)/Courier-BoldOblique.afm` $(TEXTMAP) $@ 101 1.1 christos 102 1.1 christos PR: 103 1.1 christos $(AFMTODIT) $(EFLAG) $(RFLAG) \ 104 1.1 christos `$(AFMNAME) $(afmdir)/Palatino-Roman.afm` $(TEXTMAP) $@ 105 1.1 christos 106 1.1 christos PB: 107 1.1 christos $(AFMTODIT) $(EFLAG) $(RFLAG) \ 108 1.1 christos `$(AFMNAME) $(afmdir)/Palatino-Bold.afm` $(TEXTMAP) $@ 109 1.1 christos 110 1.1 christos PI: 111 1.1 christos $(AFMTODIT) $(EFLAG) $(IFLAG) \ 112 1.1 christos `$(AFMNAME) $(afmdir)/Palatino-Italic.afm` $(TEXTMAP) $@ 113 1.1 christos 114 1.1 christos PBI: 115 1.1 christos $(AFMTODIT) $(EFLAG) $(IFLAG) \ 116 1.1 christos `$(AFMNAME) $(afmdir)/Palatino-BoldItalic.afm` $(TEXTMAP) $@ 117 1.1 christos 118 1.1 christos NR: 119 1.1 christos $(AFMTODIT) $(EFLAG) $(RFLAG) \ 120 1.1 christos `$(AFMNAME) $(afmdir)/NewCenturySchlbk-Roman.afm` $(TEXTMAP) $@ 121 1.1 christos 122 1.1 christos NB: 123 1.1 christos $(AFMTODIT) $(EFLAG) $(RFLAG) \ 124 1.1 christos `$(AFMNAME) $(afmdir)/NewCenturySchlbk-Bold.afm` $(TEXTMAP) $@ 125 1.1 christos 126 1.1 christos NI: 127 1.1 christos $(AFMTODIT) $(EFLAG) $(IFLAG) \ 128 1.1 christos `$(AFMNAME) $(afmdir)/NewCenturySchlbk-Italic.afm` $(TEXTMAP) $@ 129 1.1 christos 130 1.1 christos NBI: 131 1.1 christos $(AFMTODIT) $(EFLAG) $(IFLAG) \ 132 1.1 christos `$(AFMNAME) $(afmdir)/NewCenturySchlbk-BoldItalic.afm` $(TEXTMAP) $@ 133 1.1 christos 134 1.1 christos BMR: 135 1.1 christos $(AFMTODIT) $(EFLAG) $(RFLAG) \ 136 1.1 christos `$(AFMNAME) $(afmdir)/Bookman-Light.afm` $(TEXTMAP) $@ 137 1.1 christos 138 1.1 christos BMB: 139 1.1 christos $(AFMTODIT) $(EFLAG) $(RFLAG) \ 140 1.1 christos `$(AFMNAME) $(afmdir)/Bookman-Demi.afm` $(TEXTMAP) $@ 141 1.1 christos 142 1.1 christos BMI: 143 1.1 christos $(AFMTODIT) $(EFLAG) $(IFLAG) \ 144 1.1 christos `$(AFMNAME) $(afmdir)/Bookman-LightItalic.afm` $(TEXTMAP) $@ 145 1.1 christos 146 1.1 christos BMBI: 147 1.1 christos $(AFMTODIT) $(EFLAG) $(IFLAG) \ 148 1.1 christos `$(AFMNAME) $(afmdir)/Bookman-DemiItalic.afm` $(TEXTMAP) $@ 149 1.1 christos 150 1.1 christos AR: 151 1.1 christos $(AFMTODIT) $(EFLAG) $(RFLAG) \ 152 1.1 christos `$(AFMNAME) $(afmdir)/AvantGarde-Book.afm` $(TEXTMAP) $@ 153 1.1 christos 154 1.1 christos AB: 155 1.1 christos $(AFMTODIT) $(EFLAG) $(RFLAG) \ 156 1.1 christos `$(AFMNAME) $(afmdir)/AvantGarde-Demi.afm` $(TEXTMAP) $@ 157 1.1 christos 158 1.1 christos AI: 159 1.1 christos $(AFMTODIT) $(EFLAG) $(IFLAG) \ 160 1.1 christos `$(AFMNAME) $(afmdir)/AvantGarde-BookOblique.afm` $(TEXTMAP) $@ 161 1.1 christos 162 1.1 christos ABI: 163 1.1 christos $(AFMTODIT) $(EFLAG) $(IFLAG) \ 164 1.1 christos `$(AFMNAME) $(afmdir)/AvantGarde-DemiOblique.afm` $(TEXTMAP) $@ 165 1.1 christos 166 1.1 christos HNR: 167 1.1 christos $(AFMTODIT) $(EFLAG) $(RFLAG) \ 168 1.1 christos `$(AFMNAME) $(afmdir)/Helvetica-Narrow.afm` $(TEXTMAP) $@ 169 1.1 christos 170 1.1 christos HNB: 171 1.1 christos $(AFMTODIT) $(EFLAG) $(RFLAG) \ 172 1.1 christos `$(AFMNAME) $(afmdir)/Helvetica-Narrow-Bold.afm` $(TEXTMAP) $@ 173 1.1 christos 174 1.1 christos HNI: 175 1.1 christos $(AFMTODIT) $(EFLAG) $(IFLAG) \ 176 1.1 christos `$(AFMNAME) $(afmdir)/Helvetica-Narrow-Oblique.afm` $(TEXTMAP) $@ 177 1.1 christos 178 1.1 christos HNBI: 179 1.1 christos $(AFMTODIT) $(EFLAG) $(IFLAG) \ 180 1.1 christos `$(AFMNAME) $(afmdir)/Helvetica-Narrow-BoldOblique.afm` $(TEXTMAP) $@ 181 1.1 christos 182 1.1 christos ZCMI: 183 1.1 christos $(AFMTODIT) $(EFLAG) $(IFLAG) \ 184 1.1 christos `$(AFMNAME) $(afmdir)/ZapfChancery-MediumItalic.afm` $(TEXTMAP) $@ 185 1.1 christos 186 1.1 christos ZD: 187 1.1 christos $(AFMTODIT) -s $(RFLAG) \ 188 1.1 christos `$(AFMNAME) $(afmdir)/ZapfDingbats.afm` $(srcdir)/dingbats.map $@ 189 1.1 christos 190 1.1 christos SS: $(srcdir)/symbolsl.afm 191 1.1 christos $(AFMTODIT) -s -x $(IFLAG) \ 192 1.1 christos $(srcdir)/symbolsl.afm $(srcdir)/lgreekmap $@ 193 1.1 christos 194 1.1 christos S: symbol.afm 195 1.1 christos $(AFMTODIT) -s $(RFLAG) symbol.afm symbolmap $@ 196 1.1 christos 197 1.1 christos ZDR: zapfdr.afm 198 1.1 christos $(AFMTODIT) -s $(RFLAG) zapfdr.afm $(srcdir)/dingbats.rmap $@ 199 1.1 christos 200 1.1 christos # the map is just a dummy 201 1.1 christos EURO: freeeuro.afm 202 1.1 christos $(AFMTODIT) $(RFLAG) freeeuro.afm symbolmap $@ 203 1.1 christos 204 1.1 christos freeeuro.afm freeeuro.pfa: generate/freeeuro.sfd 205 1.1 christos pfaedit -script generate/sfdtopfa.pe generate/freeeuro.sfd 206 1.1 christos 207 1.1 christos symbol.afm: $(srcdir)/symbol.sed 208 1.1 christos -rm -f $@ 209 1.1 christos sed -f $(srcdir)/symbol.sed `$(AFMNAME) $(afmdir)/Symbol.afm` >$@ 210 1.1 christos 211 1.1 christos zapfdr.afm: 212 1.1 christos -rm -f $@ 213 1.1 christos sed -e '/^FontName /s/ZapfDingbats/ZapfDingbats-Reverse/' \ 214 1.1 christos `$(AFMNAME) $(afmdir)/ZapfDingbats.afm` >$@ 215 1.1 christos 216 1.1 christos ZD: $(srcdir)/dingbats.map 217 1.1 christos ZDR: $(srcdir)/dingbats.rmap 218 1.1 christos $(TEXTFONTS): $(TEXTMAP) $(TEXTENC) 219 1.1 christos $(SPECIALFONTS): symbolmap 220 1.1 christos $(GREEKFONTS): $(srcdir)/lgreekmap 221 1.1 christos $(FONTS): $(DESC) 222 1.1 christos 223 1.1 christos symbolmap: $(TEXTMAP) $(srcdir)/symbolchars 224 1.1 christos echo '#' >$@ 225 1.1 christos echo '# This is a list of all predefined groff symbols.' >>$@ 226 1.1 christos echo '#' >>$@ 227 1.1 christos cat $(TEXTMAP) $(srcdir)/symbolchars >>$@ 228 1.1 christos 229 1.1 christos clean: 230 1.1 christos -rm -f symbolmap symbol.afm zapfdr.afm 231 1.1 christos 232 1.1 christos realclean: clean 233 1.1 christos -rm -f $(FONTS) 234 1.1 christos 235 1.1 christos extraclean: realclean 236 1.1 christos -rm -f core *~ "#*" 237 1.1 christos 238 1.1 christos .PHONY: all clean realclean extraclean 239 1.1 christos 240