home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / cnews.tar / doc / makefile < prev    next >
Makefile  |  1994-01-12  |  1KB  |  40 lines

  1. TROFF=groff
  2. PRINTER= lpr
  3. PREREQS= macros title install flow interface dirs config ctlfiles \
  4.  log biblio trouble tune b-to-c ihave rfcerrata problems vms \
  5.  ctlmsg libs
  6. FILES= guide
  7.  
  8. all: guide.ps index.ps toc.ps
  9.  
  10. guide.ps index.raw: $(FILES) ihave.pic $(PREREQS)
  11.     soelim $(FILES) | tbl | $(TROFF) -ms -mpic >guide.ps 2>index.raw
  12.  
  13. preview index.raw: $(FILES) ihave.pic $(PREREQS)
  14.     soelim $(FILES) | tbl | xproof -ms -mpic 2>index.raw
  15.  
  16. guide.out: $(FILES) flow $(PREREQS)
  17.     soelim guide | tbl | nroff -Tdumb -ms -mpic - >$@
  18. flow: flow.pic.in flow.pic
  19.     soelim flow.pic.in | pic >$@
  20. flow.pic: flow.xpic
  21.     -x2pic <flow.xpic | sed '/^\.PS/s/$$/ 5/' >$@
  22.  
  23. #ihave.pic.in:  ihave.xpic
  24. #    x2pic <ihave.xpic >$@
  25.  
  26. ihave.pic:  ihave.pic.in
  27.     pic ihave.pic.in >$@
  28.  
  29. clean:
  30.     rm -f *.pic *.ps index.raw flow
  31.  
  32. toc.ps: index.raw toc.start toc.end toc.awk
  33.     (cat toc.start; toc.awk index.raw; cat toc.end) | tbl | $(TROFF) -ms -mpic >$@
  34.  
  35. # Copyright 1985, Massachusetts Institute of Technology
  36. # based on Makefile for the Xlib document.
  37.  
  38. index.ps: index.raw fixindex.awk block.awk indexmacros.t end.t
  39.     sed -n '/^index:/s///p' index.raw | sort -ft: +1 -3 +0n -1 | awk -f fixindex.awk | awk -f block.awk | $(TROFF) -ms -mpic indexmacros.t - end.t >$@
  40.