Makefile.tty revision 18140
118140Spst#	@(#)Makefile.tty	6.1 (Berkeley) 3/3/91
218140Spst#
318140Spst# Modified for Berkeley Unix by Donn Seeley, donn@okeeffe.berkeley.edu
418140Spst#
518140Spst#Copyright (C) 1989, 1990 Free Software Foundation, Inc.
618140Spst#     Written by James Clark (jjc@jclark.uucp)
718140Spst#
818140Spst#This file is part of groff.
918140Spst#
1018140Spst#groff is free software; you can redistribute it and/or modify it under
1118140Spst#the terms of the GNU General Public License as published by the Free
1218140Spst#Software Foundation; either version 1, or (at your option) any later
1318140Spst#version.
1418140Spst#
1518140Spst#groff is distributed in the hope that it will be useful, but WITHOUT ANY
1618140Spst#WARRANTY; without even the implied warranty of MERCHANTABILITY or
1718140Spst#FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1818140Spst#for more details.
1918140Spst#
2018140Spst#You should have received a copy of the GNU General Public License along
2118140Spst#with groff; see the file LICENSE.  If not, write to the Free Software
2218140Spst#Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
2318140Spst
2418140Spst.MAIN: all
2518140Spst
2618140SpstRES=240
2718140SpstCPI=10
2818140SpstLPI=6
2918140SpstFONTS=R I B BI S L
3018140Spst
3118140SpstDEVFILES=$(FONTS) DESC
3218140SpstCLEANFILES=$(DEVFILES)
3318140Spst
3418140Spst$(FONTS): R.proto
3518140Spst	@${ECHO} Making $@
3618140Spst	@(charwidth=`echo  $(RES) / $(CPI) | bc` ; \
3718140Spst 	 sed -e "s/^name [A-Z]*$$/name $@/" \
3818140Spst	     -e "s/^\\([^	]*\\)	[0-9]+	/\\1	$$charwidth	/" \
3918140Spst	     -e "s/^spacewidth [0-9]+$$/spacewidth $$charwidth/" \
4018140Spst	     -e "s/^internalname .*$$/internalname $@/" \
4118140Spst	     -e "/^internalname/s/BI/3/" \
4218140Spst	     -e "/^internalname/s/B/2/" \
4318140Spst	     -e "/^internalname/s/I/1/" \
4418140Spst	     -e "/^internalname .*[^ 0-9]/d" \
4518140Spst	     ${DISTDIR}/R.proto >$@)
4618140Spst
4718140SpstDESC: DESC.proto
4818140Spst	@${ECHO} Making $@
4918140Spst	@sed -e "s/^res .*$$/res $(RES)/" \
5018140Spst	    -e "s/^hor .*$$/hor `echo $(RES) / $(CPI) | bc`/" \
5118140Spst	    -e "s/^vert .*$$/vert `echo $(RES) / $(LPI) | bc`/" \
5218140Spst	    -e "s/^fonts .*$$/fonts `set $(FONTS); echo $$#` $(FONTS)/" \
5318140Spst	    ${DISTDIR}/DESC.proto >$@
5418140Spst
5518140Spstbeforeinstall:: ${DEVFILES}
56