1# @(#)Makefile.tty 6.1 (Berkeley) 3/3/91 2# 3# Modified for Berkeley Unix by Donn Seeley, donn@okeeffe.berkeley.edu 4# 5#Copyright (C) 1989, 1990 Free Software Foundation, Inc. 6# Written by James Clark (jjc@jclark.uucp) 7# 8#This file is part of groff. 9# 10#groff is free software; you can redistribute it and/or modify it under 11#the terms of the GNU General Public License as published by the Free 12#Software Foundation; either version 1, or (at your option) any later 13#version. 14# 15#groff is distributed in the hope that it will be useful, but WITHOUT ANY 16#WARRANTY; without even the implied warranty of MERCHANTABILITY or 17#FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 18#for more details. 19# 20#You should have received a copy of the GNU General Public License along 21#with groff; see the file LICENSE. If not, write to the Free Software 22#Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 23 24.MAIN: all 25 26RES=240 27CPI=10 28LPI=6 29FONTS=R I B BI 30 31FONTFILES=$(FONTS) DESC 32 33$(FONTS): R.proto 34 @echo Making $@ 35 @(charwidth=`echo $(RES) / $(CPI) | bc` ; \ 36 sed -e "s/^name [A-Z]*$$/name $@/" \ 37 -e "s/^\\([^ ]*\\) [0-9]+ /\\1 $$charwidth /" \ 38 -e "s/^spacewidth [0-9]+$$/spacewidth $$charwidth/" \ 39 -e "s/^internalname .*$$/internalname $@/" \ 40 -e "/^internalname/s/BI/3/" \ 41 -e "/^internalname/s/B/2/" \ 42 -e "/^internalname/s/I/1/" \ 43 -e "/^internalname .*[^ 0-9]/d" \ 44 $(.CURDIR)/R.proto >$@) 45 46DESC: DESC.proto 47 @echo Making $@ 48 @sed -e "s/^res .*$$/res $(RES)/" \ 49 -e "s/^hor .*$$/hor `echo $(RES) / $(CPI) | bc`/" \ 50 -e "s/^vert .*$$/vert `echo $(RES) / $(LPI) | bc`/" \ 51 -e "s/^fonts .*$$/fonts `set $(FONTS); echo $$#` $(FONTS)/" \ 52 $(.CURDIR)/DESC.proto >$@ 53 54.include "../Makefile.dev" 55