home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / usr.bin / groff / devices / Makefile.tty < prev    next >
Encoding:
Makefile  |  1991-03-03  |  1.7 KB  |  55 lines

  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.  
  26. RES=240
  27. CPI=10
  28. LPI=6
  29. FONTS=R I B BI
  30.  
  31. FONTFILES=$(FONTS) DESC
  32.  
  33. $(FONTS): R.proto
  34.     @echo Making $@
  35.     @(charwidth=`expr $(RES) / $(CPI)` ; \
  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.  
  46. DESC: DESC.proto
  47.     @echo Making $@
  48.     @sed -e "s/^res .*$$/res $(RES)/" \
  49.         -e "s/^hor .*$$/hor `expr $(RES) / $(CPI)`/" \
  50.         -e "s/^vert .*$$/vert `expr $(RES) / $(LPI)`/" \
  51.         -e "s/^fonts .*$$/fonts `set $(FONTS); echo $$#` $(FONTS)/" \
  52.         $(.CURDIR)/DESC.proto >$@
  53.  
  54. .include "../Makefile.dev"
  55.