home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / g / gplot386.zip / GNUPLOT / DOCS / MAKEFILE < prev    next >
Text File  |  1992-06-06  |  3KB  |  99 lines

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