home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 334_02 / makefile.doc < prev    next >
Makefile  |  1991-02-05  |  2KB  |  92 lines

  1. # Makefile for GNUPLOT documentation
  2. #
  3. # Note that the top-level file for documentation is gnuplot.doc.
  4. # See README.
  5. #
  6. # To print manual:
  7. #    make gnuplot.dvi             (for latex)
  8. #    (print or view gnuplot.dvi)
  9. # OR
  10. #    make gnuplot.nroff           (for nroff)
  11. #    (print or view gnuplot.nroff)
  12. #   or
  13. #    make "TROFF=itroff" troff    (for troff; use your troff for itroff here)
  14. #
  15. # $Id: Makefile,v 1.3 90/12/19 10:01:02 dfk Patch2 $
  16.  
  17. # usually overridden by ../Makefile
  18. HELPDEST = /usr/local/lib/
  19.  
  20. # substitute your troff command (and any flags) for this one
  21. TROFF=itroff
  22.  
  23. # Compiler flags
  24. # -DSYSV if att sys V
  25. # -DMSDOS if MSDOS PS
  26. # no extra flags for BSD
  27. CFLAGS = -s
  28.  
  29. # default is what is needed for interactive gnuplot
  30. default: gnuplot.hlp gnuplot.gih
  31.  
  32. ### [tn]roff documentation
  33. troff: gnuplot.ms titlepage.ms
  34.     tbl gnuplot.ms | eqn | $(TROFF) -ms
  35.  
  36. # for screen viewing, or printers with backspace/overstrike, remove the -Tlpr
  37. nroff gnuplot.nroff: gnuplot.ms titlepage.ms
  38.     tbl gnuplot.ms | neqn | nroff -ms -Tlpr > gnuplot.nroff
  39.  
  40. ms gnuplot.ms: doc2ms gnuplot.doc
  41.     ./doc2ms < gnuplot.doc > gnuplot.ms
  42.  
  43. doc2ms: doc2ms.c
  44.     cc $(CFLAGS) -o doc2ms doc2ms.c
  45.  
  46. ### LaTeX documentation
  47. tex gnuplot.tex: doc2tex gnuplot.doc
  48.     ./doc2tex < gnuplot.doc > gnuplot.tex
  49.  
  50. dvi gnuplot.dvi: gnuplot.tex titlepage.tex
  51.     (latex gnuplot.tex ; latex gnuplot.tex)
  52.  
  53. doc2tex: doc2tex.c
  54.     cc $(CFLAGS) -o doc2tex doc2tex.c
  55.  
  56. # this is how to make gnuplot.hlp
  57. hlp gnuplot.hlp: doc2hlp gnuplot.doc
  58.     ./doc2hlp < gnuplot.doc > gnuplot.hlp
  59.  
  60. doc2hlp: doc2hlp.c
  61.     cc $(CFLAGS) -o doc2hlp doc2hlp.c
  62.  
  63. # this is how to make gnuplot.gih
  64. gih gnuplot.gih: doc2gih gnuplot.doc
  65.     ./doc2gih < gnuplot.doc > gnuplot.gih
  66.  
  67. doc2gih: doc2gih.c
  68.     cc $(CFLAGS) -o doc2gih doc2gih.c
  69.  
  70. # this is how to check the gnuplot.doc file
  71. check: checkdoc gnuplot.doc
  72.     ./checkdoc < gnuplot.doc
  73.  
  74. checkdoc: checkdoc.c
  75.     cc $(CFLAGS) -o checkdoc checkdoc.c
  76.  
  77. # For Unix and MSDOS only
  78. install-unix: gnuplot.gih
  79.     cp gnuplot.gih $(HELPDEST)
  80.  
  81. # for VMS only
  82. install-vms: gnuplot.hlp
  83.     cp gnuplot.hlp $(HELPDEST)
  84.  
  85. # remove all derived files
  86. clean:
  87.     rm -f doc2ms gnuplot.nroff gnuplot.ms
  88.     rm -f doc2tex gnuplot.tex gnuplot.dvi gnuplot.aux gnuplot.log gnuplot.toc
  89.     rm -f doc2hlp gnuplot.hlp
  90.     rm -f doc2gih gnuplot.gih
  91.     rm -f checkdoc *~ *.o core a.out
  92.