home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / unix / riscbsd / 1_1_contri / usd / 16_ex / makefile < prev   
Encoding:
Makefile  |  1986-05-31  |  787 b   |  31 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=    ex.rm
  9. MACROS=    -msU
  10. PRINTER=Pdp
  11. TBL=    dtbl -${PRINTER}
  12. TROFF=    ditroff -${PRINTER}
  13.  
  14. paper:    paper.${PRINTER} summary.${PRINTER}
  15.     lpr -${PRINTER} -n paper.${PRINTER}
  16.     lpr -${PRINTER} -n summary.${PRINTER}
  17.  
  18. paper.${PRINTER}: ${SRCS}
  19.     ${TROFF} ${MACROS} -t ${SRCS} > paper.${PRINTER}
  20.  
  21. summary.${PRINTER}: ex.summary
  22.     ${TBL} ex.summary | ${TROFF} ${MACROS} -t > summary.${PRINTER}
  23.  
  24. clean:
  25.     rm -f paper.[PT]* summary.[PT]* *.spell errs Errs make.out
  26.  
  27. spell:    ${SRCS}
  28.     @for i in ${SRCS}; do \
  29.         echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
  30.     done
  31.