home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / unix / riscbsd / 1_1_contri / usd / 24_troff / makefile < prev    next >
Encoding:
Makefile  |  1986-04-21  |  1.5 KB  |  56 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.3 (Berkeley) 4/21/86
  7. #
  8. INTRO=    m0
  9. TUTOR=    m0a
  10. PAPER=    m1 m2 m3 m4
  11. APNDX1=    m5
  12. APNDX2=    table1
  13. APNDX3=    table2
  14. MACROS=    m.mac
  15. PRINTER=Pdp
  16. TBL=    dtbl -${PRINTER}
  17. TROFF=    ditroff -${PRINTER}
  18. LPR=    lpr -n -${PRINTER}
  19.  
  20. paper:    intro.${PRINTER} tutor.${PRINTER} paper.${PRINTER}
  21. paper:    apndx1.${PRINTER} apndx2.${PRINTER} apndx3.${PRINTER} 
  22.     ${LPR} intro.${PRINTER}
  23.     ${LPR} tutor.${PRINTER}
  24.     ${LPR} paper.${PRINTER}
  25.     ${LPR} apndx1.${PRINTER}
  26.     ${LPR} apndx2.${PRINTER}
  27.     ${LPR} apndx3.${PRINTER}
  28.  
  29. intro.${PRINTER}: ${INTRO}
  30.     ${TROFF} -t ${MACROS} ${INTRO} > intro.${PRINTER}
  31.  
  32. tutor.${PRINTER}: ${TUTOR}
  33.     ${TBL} ${TUTOR} | ${TROFF} -t ${MACROS} - > tutor.${PRINTER}
  34.  
  35. paper.${PRINTER}: ${PAPER}
  36.     ${TBL} ${PAPER} | ${TROFF} -t ${MACROS} - > paper.${PRINTER}
  37.  
  38. apndx1.${PRINTER}: ${APNDX1}
  39.     ${TROFF} -t ${MACROS} ${APNDX1} > apndx1.${PRINTER}
  40.  
  41. apndx2.${PRINTER}: ${APNDX2}
  42.     ${TROFF} -t ${MACROS} ${APNDX2} > apndx2.${PRINTER}
  43.  
  44. apndx3.${PRINTER}: ${APNDX3}
  45.     ${TROFF} -t ${MACROS} ${APNDX3} > apndx3.${PRINTER}
  46.  
  47. clean:
  48.     rm -f intro.${PRINTER} tutor.${PRINTER} paper.${PRINTER} \
  49.         apndx1.${PRINTER} apndx2.${PRINTER} apndx3.${PRINTER} \
  50.         *.spell errs Errs make.out
  51.  
  52. spell:    ${INTRO} ${TUTOR} ${PAPER} ${APNDX1} ${APNDX2} ${APNDX3}
  53.     @for i in ${INTRO} ${TUTOR} ${PAPER} ${APNDX1} ${APNDX2} ${APNDX3}; do \
  54.         echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
  55.     done
  56.