Initial release of Maemo 5 port of gnuplot
[gnuplot] / docs / makefile.ami
1 #
2 # $Id: makefile.ami,v 1.3 2000/01/22 16:40:27 lhecking 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 # usually overridden by ../Makefile
19 HELPDEST = /usr/local/lib/
20
21 # substitute your troff command (and any flags) for this one
22 TROFF=itroff
23   
24 # substitute cp if you do not have the install program
25 INSTALL=install
26
27 # Compiler flags
28 # -DSYSV if att sys V
29 # -DMSDOS if MSDOS PS
30 # -traditional -g -O if gcc (set 'CC = gcc')
31 # no extra flags for BSD
32 CFLAGS = 
33 CC = cc
34 LN =ln
35 LFLAGS = -lm -lc
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 # 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
47
48 ms gnuplot.ms: doc2ms gnuplot.doc
49         doc2ms < gnuplot.doc > gnuplot.ms
50
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)
54
55 ### LaTeX documentation
56 tex gnuplot.tex: doc2tex gnuplot.doc
57         doc2tex < gnuplot.doc > gnuplot.tex
58
59 dvi gnuplot.dvi: gnuplot.tex titlepage.tex
60         latex gnuplot.tex
61         latex gnuplot.tex
62
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)
66
67 # this is how to make gnuplot.hlp
68 hlp gnuplot.hlp: doc2hlp gnuplot.doc
69         doc2hlp < gnuplot.doc > gnuplot.hlp
70
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)
74
75 # this is how to make gnuplot.gih
76 gih gnuplot.gih: doc2gih gnuplot.doc
77         doc2gih < gnuplot.doc > gnuplot.gih
78
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)
82
83 # this is how to check the gnuplot.doc file
84 check: checkdoc gnuplot.doc
85         checkdoc < gnuplot.doc
86
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)
90
91 # For Unix and MSDOS only
92 install-unix: gnuplot.gih
93         $(INSTALL) gnuplot.gih $(HELPDEST)
94
95 # for VMS only
96 install-vms: gnuplot.hlp
97         $(INSTALL) gnuplot.hlp $(HELPDEST)
98
99 # remove all derived files
100 clean:
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