2 # $Id: makefile.ami,v 1.3 2000/01/22 16:40:27 lhecking Exp $
4 # Makefile for GNUPLOT documentation (Aztec C v5.xx Version)
6 # Note that the top-level file for documentation is gnuplot.doc.
10 # make gnuplot.dvi (for latex)
11 # (print or view gnuplot.dvi)
13 # make gnuplot.nroff (for nroff)
14 # (print or view gnuplot.nroff)
16 # make "TROFF=itroff" troff (for troff; use your troff for itroff here)
18 # usually overridden by ../Makefile
19 HELPDEST = /usr/local/lib/
21 # substitute your troff command (and any flags) for this one
24 # substitute cp if you do not have the install program
30 # -traditional -g -O if gcc (set 'CC = gcc')
31 # no extra flags for BSD
37 # default is what is needed for interactive gnuplot
38 default: gnuplot.hlp gnuplot.gih
40 ### [tn]roff documentation
41 troff: gnuplot.ms titlepage.ms
42 tbl gnuplot.ms | eqn | $(TROFF) -ms
44 # for screen viewing, or printers with backspace/overstrike, remove the -Tlpr
45 nroff gnuplot.nroff: gnuplot.ms titlepage.ms
46 tbl gnuplot.ms | neqn | nroff -ms -Tlpr > gnuplot.nroff
48 ms gnuplot.ms: doc2ms gnuplot.doc
49 doc2ms < gnuplot.doc > gnuplot.ms
51 doc2ms: doc2ms.c termdoc.c
52 $(CC) $(CFLAGS) -DALL_TERM_DOC -o doc2ms.o doc2ms.c termdoc.c
53 $(LN) -o doc2ms doc2ms.o termdoc.o $(LFLAGS)
55 ### LaTeX documentation
56 tex gnuplot.tex: doc2tex gnuplot.doc
57 doc2tex < gnuplot.doc > gnuplot.tex
59 dvi gnuplot.dvi: gnuplot.tex titlepage.tex
63 doc2tex: doc2tex.c termdoc.c
64 $(CC) $(CFLAGS) -DALL_TERM_DOC -o doc2tex.o doc2tex.c termdoc.c
65 $(LN) -o doc2tex doc2tex.o termdoc.o $(LFLAGS)
67 # this is how to make gnuplot.hlp
68 hlp gnuplot.hlp: doc2hlp gnuplot.doc
69 doc2hlp < gnuplot.doc > gnuplot.hlp
71 doc2hlp: doc2hlp.c termdoc.c
72 $(CC) $(CFLAGS) -o doc2hlp.o doc2hlp.c termdoc.c
73 $(LN) -o doc2hlp doc2hlp.o termdoc.o $(LFLAGS)
75 # this is how to make gnuplot.gih
76 gih gnuplot.gih: doc2gih gnuplot.doc
77 doc2gih < gnuplot.doc > gnuplot.gih
79 doc2gih: doc2gih.c termdoc.c
80 $(CC) $(CFLAGS) -o doc2gih.o doc2gih.c termdoc.c
81 $(LN) -o doc2gih doc2gih.o termdoc.o $(LFLAGS)
83 # this is how to check the gnuplot.doc file
84 check: checkdoc gnuplot.doc
85 checkdoc < gnuplot.doc
87 checkdoc: checkdoc.c termdoc.c
88 $(CC) $(CFLAGS) -DALL_TERM_DOC -o checkdoc.o checkdoc.c termdoc.c
89 $(LN) -o checkdoc checkdoc.o termdoc.o $(LFLAGS)
91 # For Unix and MSDOS only
92 install-unix: gnuplot.gih
93 $(INSTALL) gnuplot.gih $(HELPDEST)
96 install-vms: gnuplot.hlp
97 $(INSTALL) gnuplot.hlp $(HELPDEST)
99 # remove all derived files
101 rm -f doc2ms gnuplot.nroff gnuplot.ms
102 rm -f doc2tex gnuplot.tex gnuplot.dvi gnuplot.aux gnuplot.log gnuplot.toc
103 rm -f doc2hlp gnuplot.hlp
104 rm -f doc2gih gnuplot.gih
105 rm -f checkdoc *~ *.o core a.out