1 # Makefile.sub for `font devhtml'
3 # File position: <groff-source>/font/devhtml/Makefile.sub
6 # Free Software Foundation, Inc.
8 # Last update: 2 Sep 2014
10 # This file is part of `font utf8' which is part of `groff'.
12 # `groff' is free software; you can redistribute it and/or modify it
13 # under the terms of the GNU General Public License as published by
14 # the Free Software Foundation, either version 2 of the License, or
15 # (at your option) any later version.
17 # `groff' is distributed in the hope that it will be useful, but
18 # WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 # General Public License for more details.
22 # You should have received a copy of the GNU General Public License
23 # along with this program. If not, see
24 # <http://www.gnu.org/licenses/gpl-2.0.html>.
26 ########################################################################
29 PROTOFONTS=R I B BI CR CI CB CBI
31 DEVFILES=$(FONTS) DESC
32 MOSTLYCLEANADD=$(FONTS) DESC
43 @charwidth=`expr $(RES) / $(CPI)` ; \
44 sed -e "s/^name [A-Z]*$$/name $@/" \
46 "s/^\\([^ ]*\\) [0-9][0-9]* /\\1 $$charwidth /" \
47 -e "s/^spacewidth [0-9][0-9]*$$/spacewidth $$charwidth/" \
48 -e "s/^internalname .*$$/internalname $@/" \
49 -e "/^internalname/s/CR/4/" \
50 -e "/^internalname/s/BI/3/" \
51 -e "/^internalname/s/B/2/" \
52 -e "/^internalname/s/I/1/" \
53 -e "/^internalname .*[^ 0-9]/d" \
58 @sed -e "s/^res .*$$/res $(RES)/" \
59 -e "s/^hor .*$$/hor `expr $(RES) / $(CPI)`/" \
60 -e "s/^vert .*$$/vert `expr $(RES) / $(LPI)`/" \
61 -e "s/^fonts .*$$/fonts `set $(FONTS); echo $$#` $(FONTS)/" \
62 $(srcdir)/DESC.proto >$@
63 @echo "image_generator $(GHOSTSCRIPT)" >> $@
65 ########################################################################
67 ########################################################################