home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / CNEWS / _CNEWS.TAR / usr / doc / cnews / docs / Makefile < prev    next >
Encoding:
Makefile  |  1994-09-02  |  883 b   |  33 lines

  1. TROFF=groff
  2. PRINTER= lpr
  3. FILES= guide
  4.  
  5. all: guide.ps index.ps toc.ps
  6.  
  7. guide.ps index.raw: $(FILES) ihave.pic
  8.     soelim $(FILES) | tbl | $(TROFF) -ms >guide.ps 2>index.raw
  9.  
  10. preview index.raw: $(FILES) ihave.pic
  11.     soelim $(FILES) | tbl | xproof -ms 2>index.raw
  12.  
  13. guide.out: $(FILES)
  14.     soelim guide | tbl | nroff -Tdumb -ms - >$@
  15.  
  16. #ihave.pic.in:  ihave.xpic
  17. #    x2pic <ihave.xpic >$@
  18.  
  19. ihave.pic:  ihave.pic.in
  20.     pic ihave.pic.in >$@
  21.  
  22. clean:
  23.     rm -f *.pic *.ps index.raw
  24.  
  25. toc.ps: index.raw toc.start toc.end toc.awk
  26.     (cat toc.start; toc.awk index.raw; cat toc.end) | tbl | $(TROFF) -ms >$@
  27.  
  28. # Copyright 1985, Massachusetts Institute of Technology
  29. # based on Makefile for the Xlib document.
  30.  
  31. index.ps: index.raw fixindex.awk block.awk indexmacros.t end.t
  32.     sed -n '/^index:/s///p' index.raw | sort -ft: +1 -3 +0n -1 | awk -f fixindex.awk | awk -f block.awk | $(TROFF) -ms indexmacros.t - end.t >$@
  33.