home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archives / GNU / GNUPLOTdoc.lha / docs / Makefile < prev    next >
Encoding:
Makefile  |  1996-01-30  |  3.2 KB  |  134 lines

  1. #
  2. # $Id: makefile.ami,v 1.2 1993/09/27 17:13:14 alex Exp $
  3. #
  4. # Makefile for GNUPLOT documentation (Aztec C v5.xx Version)
  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 for itroff here)
  17. #
  18. # $Id: makefile.ami,v 1.2 1993/09/27 17:13:14 alex Exp $
  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=itroff
  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 = -c -I.. -I../term -DNOGAMMA -DPROTOTYPE__P  -DRETSIGTYPE=void -DSTRNCASECMP
  35. CC = gcc
  36. LN =gcc
  37. LFLAGS = -lm -lc
  38.  
  39.  
  40. # define LATEX and relativs here
  41. #
  42. TEX = latex
  43. DVIPS = dvips
  44.  
  45. # default is what is needed for interactive gnuplot
  46. default: gnuplot.gih
  47.  
  48. ### [tn]roff documentation
  49. troff: gnuplot.ms titlepage.ms
  50.     tbl gnuplot.ms | eqn | $(TROFF) -ms
  51.  
  52. # for screen viewing, or printers with backspace/overstrike, remove the -Tlpr
  53. nroff gnuplot.nroff: gnuplot.ms titlepage.ms
  54.     tbl gnuplot.ms | neqn | nroff -ms -Tlpr > gnuplot.nroff
  55.  
  56. ms gnuplot.ms: doc2ms gnuplot.doc
  57.     doc2ms < gnuplot.doc > gnuplot.ms
  58.  
  59. doc2ms: doc2ms.c
  60.     $(CC) $(CFLAGS) -o doc2ms.o doc2ms.c
  61.     $(LN) -o doc2ms doc2ms.o $(LFLAGS)
  62.  
  63. ### LaTeX documentation
  64. tex gnuplot.tex: doc2tex gnuplot.doc
  65.     doc2tex < gnuplot.doc > gnuplot.tex
  66.  
  67. dvi gnuplot.dvi: gnuplot.tex titlepag.tex toc_entr.sty
  68.     $(TEX) gnuplot.tex
  69.     $(TEX) gnuplot.tex
  70.  
  71. # this is how to make PostScript files
  72. # if pslatex has been installed, add "times" to titlepage.tex
  73. ps: gnuplot.ps gpcard.ps
  74.  
  75. gnuplot.ps: gnuplot.dvi
  76.     $(DVIPS) gnuplot
  77.     
  78. gpcard.ps: gpcard.dvi
  79.     $(DVIPS) gpcard
  80.         
  81. doc2tex: doc2tex.c
  82.     $(CC) $(CFLAGS) -o doc2tex.o doc2tex.c
  83.     $(LN) -o doc2tex doc2tex.o $(LFLAGS)
  84.  
  85. # this is how to make gnuplot.hlp
  86. hlp gnuplot.hlp: doc2hlp gnuplot.doc
  87.     doc2hlp < gnuplot.doc > gnuplot.hlp
  88.  
  89. doc2hlp: doc2hlp.c
  90.     $(CC) $(CFLAGS) -o doc2hlp.o doc2hlp.c
  91.     $(LN) -o doc2hlp doc2hlp.o $(LFLAGS)
  92.  
  93. # this is how to make gnuplot.gih
  94. gih gnuplot.gih: doc2gih gnuplot.doc
  95.     doc2gih < gnuplot.doc > gnuplot.gih
  96.  
  97. doc2gih: doc2gih.c
  98.     $(CC) $(CFLAGS) -o doc2gih.o doc2gih.c
  99.     $(LN) -o doc2gih doc2gih.o $(LFLAGS)
  100.  
  101. # this is for the more or less disturbed
  102.  
  103. rtf: doc2rtf
  104.     doc2rtf gnuplot.doc gnuplot.rtf
  105.  
  106. doc2rtf:   doc2gih.c
  107.     $(CC) $(CFLAGS) -o doc2rtf.o doc2rtf.c
  108.     $(LN) -o doc2rtf doc2rtf.o $(LFLAGS)
  109.  
  110. # this is how to check the gnuplot.doc file
  111. check: checkdoc gnuplot.doc
  112.     checkdoc < gnuplot.doc
  113.  
  114. checkdoc: checkdoc.c
  115.     $(CC) $(CFLAGS) -o checkdoc.o checkdoc.c
  116.     $(LN) -o checkdoc checkdoc.o $(LFLAGS)
  117.  
  118. # For Unix and MSDOS only
  119. install-unix: gnuplot.gih
  120.     $(INSTALL) gnuplot.gih $(HELPDEST)
  121.  
  122. # for VMS only
  123. install-vms: gnuplot.hlp
  124.     $(INSTALL) gnuplot.hlp $(HELPDEST)
  125.  
  126. # remove all derived files
  127. clean:
  128.     rm -f doc2ms gnuplot.nroff gnuplot.ms
  129.     rm -f doc2tex gnuplot.tex gnuplot.dvi gnuplot.aux gnuplot.log gnuplot.toc
  130.     rm -f doc2hlp gnuplot.hlp
  131.     rm -f doc2gih gnuplot.gih
  132.     rm -f checkdoc *~ *.o core a.out
  133.