1 # Makefile.sub for `font devascii'
3 # File position: <groff-source>/font/devascii/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 ########################################################################
30 DEVFILES=$(FONTS) DESC
31 MOSTLYCLEANADD=$(FONTS) DESC
42 @charwidth=`expr $(RES) / $(CPI)` ; \
43 sed -e "s/^name [A-Z]*$$/name $@/" \
45 "s/^\\([^ ]*\\) [0-9][0-9]* /\\1 $$charwidth /" \
46 -e "s/^spacewidth [0-9][0-9]*$$/spacewidth $$charwidth/" \
47 -e "s/^internalname .*$$/internalname $@/" \
48 -e "/^internalname/s/BI/3/" \
49 -e "/^internalname/s/B/2/" \
50 -e "/^internalname/s/I/1/" \
51 -e "/^internalname .*[^ 0-9]/d" \
56 @sed -e "s/^res .*$$/res $(RES)/" \
57 -e "s/^hor .*$$/hor `expr $(RES) / $(CPI)`/" \
58 -e "s/^vert .*$$/vert `expr $(RES) / $(LPI)`/" \
59 -e "s/^fonts .*$$/fonts `set $(FONTS); echo $$#` $(FONTS)/" \
60 $(srcdir)/DESC.proto >$@
62 ########################################################################
64 ########################################################################