home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / unix / riscbsd / 1_1_contri / usd / 15_vi / makefile next >
Encoding:
Makefile  |  1986-05-30  |  958 b   |  35 lines

  1. #
  2. # Copyright (c) 1986 Regents of the University of California.
  3. # All rights reserved.  The Berkeley software License Agreement
  4. # specifies the terms and conditions for redistribution.
  5. #
  6. #    @(#)Makefile    6.1 (Berkeley) 5/30/86
  7. #
  8. SRCS=    vi.in vi.chars
  9. MACROS=    -msU
  10. PRINTER=Pdp
  11. TBL=    dtbl -${PRINTER}
  12. TROFF=    ditroff -${PRINTER}
  13.  
  14. paper:    paper.${PRINTER} summary.${PRINTER} viapwh.${PRINTER}
  15.     lpr -${PRINTER} -n paper.${PRINTER}
  16.     lpr -${PRINTER} -n summary.${PRINTER}
  17.     lpr -${PRINTER} -n viapwh.${PRINTER}
  18.  
  19. paper.${PRINTER}: ${SRCS}
  20.     ${TBL} ${SRCS} | ${TROFF} ${MACROS} -t > paper.${PRINTER}
  21.  
  22. summary.${PRINTER}: vi.summary
  23.     ${TBL} vi.summary | ${TROFF} ${MACROS} -t > summary.${PRINTER}
  24.  
  25. viapwh.${PRINTER}: vi.apwh.ms
  26.     ${TROFF} ${MACROS} -t vi.viapwh > viapwh.${PRINTER}
  27.  
  28. clean:
  29.     rm -f paper.[PT]* summary.[PT]* viapwh.[PT]* *.spell errs Errs make.out
  30.  
  31. spell:    ${SRCS}
  32.     @for i in ${SRCS}; do \
  33.         echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
  34.     done
  35.