home *** CD-ROM | disk | FTP | other *** search
/ ftp.cse.unsw.edu.au / 2014.06.ftp.cse.unsw.edu.au.tar / ftp.cse.unsw.edu.au / pub / doc / papers / misc / cs.toronto.edu:programming / Makefile (.txt) < prev    next >
Encoding:
LaTeX Document  |  1992-10-18  |  1.7 KB  |  71 lines

  1. # While this makefile works, it is intended more as guidance in
  2. # formatting the documents than as an absolute method. 
  3. # Caveats:
  4. #     For things like TeX documents, you may need to run lt twice
  5. # to get indexes and suchlike straight.
  6. #     You have to manually edit the TeX file and specify
  7. # the \documentstyle to be dvidoc if you want a .doc, or something
  8. # else for a .ps.
  9. #    For troff documents that use pic/grap/tbl/eqn/psfig, you'll have
  10. # to setup specific subsidiary lines - see those for c-news or ihstyle
  11. # as examples.
  12. #     - moraes, Feb 20
  13. # Some Make rules for processing documents
  14. .SUFFIXES: .ms .me .man .mm .mX .ps .doc .tex .dvi
  15. .ms.doc:
  16.     rm -f $*.doc
  17.     nroff -ms $*.ms > $*.doc
  18. .me.doc:
  19.     rm -f $*.doc
  20.     nroff -me $*.me > $*.doc
  21. .man.doc:
  22.     rm -f $*.doc
  23.     nroff -man $*.man > $*.doc
  24. .mm.doc:
  25.     rm -f $*.doc
  26.     nroff -mm $*.mm > $*.doc
  27. .mX.doc:
  28.     rm -f $*.doc
  29.     nroff -mX $*.mX > $*.doc
  30. .tex.dvi:
  31.     rm -f $*.dvi
  32.     lt $*
  33. .dvi.doc:
  34.     rm -f $*.doc
  35.     dvidoc $* > $*.doc
  36. .dvi.ps:
  37.     rm -f $*.ps
  38.     dvi2ps $* > $*.ps
  39. .ms.ps:
  40.     rm -f $*.ps
  41.     psroff -t -ms $*.ms > $*.ps
  42. .me.ps:
  43.     rm -f $*.ps
  44.     psroff -t -me $*.me > $*.ps
  45. .man.ps:
  46.     rm -f $*.ps
  47.     psroff -t -man $*.man > $*.ps
  48. .mm.ps:
  49.     rm -f $*.ps
  50.     psroff -t -mm $*.mm > $*.ps
  51. .mX.ps:
  52.     rm -f $*.ps
  53.     psroff -t -mX $*.mX > $*.ps
  54. # The list of documents
  55. DOCS=ihstyle.doc c-news.doc steal.doc pikestyle.doc \
  56.     setuid.doc
  57. PS=${DOCS:.doc=.ps}
  58. doc: $(DOCS)
  59. ps: $(PS)
  60. tcpip-cookbook.ps: tcpip-cookbook.dvi
  61. tcpip-cookbook.doc: tcpip-cookbook.dvi
  62. ihstyle.ms: ihstyle.tbl.ms
  63.     tbl ihstyle.tbl.ms > ihstyle.ms
  64. c-news.ms: c-news.tbl.ms
  65.     tbl c-news.tbl.ms > c-news.ms
  66. clean:
  67.     rm -f *.dvi *.toc *.aux *.log *.bak *.CKP *.BAK \#* *~ \
  68.         ihstyle.ms c-news.ms
  69. veryclean:
  70.     rm -f *.ps *.doc
  71.