Annotation of OpenXM_contrib/gnuplot/docs/Makefile.in, Revision 1.1.1.1
1.1 maekawa 1: # Makefile.in 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 here)
14: #
15:
16: # default is what is needed for interactive gnuplot
17: default: gnuplot.hlp gnuplot.gih
18:
19: # this tells GNU make not to export variables into the environment
20: # But other makes dont understand its significance, so it must
21: # not be the first target in the file. So it is here, before
22: # any variables are created, but after the default target
23: .NOEXPORT:
24:
25: SHELL = /bin/sh
26:
27: prefix = @prefix@
28: exec_prefix = @exec_prefix@
29: bindir = @bindir@
30: datadir = @datadir@
31: mandir = @mandir@
32: srcdir = @srcdir@
33: top_builddir = .
34: top_srcdir = @top_srcdir@
35: VPATH = @srcdir@
36:
37: INSTALL = @INSTALL@
38: INSTALL_PROGRAM = @INSTALL_PROGRAM@
39: INSTALL_DATA = @INSTALL_DATA@
40:
41: CC = @CC@
42: DEFS = @DEFS@
43: CFLAGS = @CFLAGS@
44: INCLUDES = -I.. -I$(srcdir)/.. -I$(srcdir)/../term -I.
45: LDFLAGS = @LDFLAGS@
46: LIBS =
47:
48: COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CFLAGS)
49: LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
50:
51: # The makeinfo command from GNU texinfo
52: MAKEINFO = makeinfo
53:
54: # substitute your troff command (and any flags) for this one
55: TROFF=troff
56:
57: # substitute your DVI to PostScript conversion program here
58: DVIPS=dvips
59:
60: # list of terminals, generated at configure time
61: TERM_LIST = \@TERM_LIST@
62:
63: allterm.h : $(TERM_LIST)
64: @echo Building allterm.h
65: cat $(srcdir)/../term/*.trm > allterm.h
66:
67: # for debugging
68: alldoc: check dvi gih hlp html info ipf ms nroff ps rnh rtf
69:
70: ### [tn]roff documentation
71: troff: gnuplot.ms titlepag.ms
72: @if [ "$(srcdir)" = "$(top_builddir)" ] ; then \
73: tbl gnuplot.ms | eqn | $(TROFF) -ms ; \
74: else \
75: < gnuplot.ms sed "s,titlepag\.ms,$(srcdir)/titlepag\.ms," |\
76: tbl | eqn | $(TROFF) -ms ; \
77: fi
78:
79: nroff: gnuplot.nroff
80:
81: gnuplot.nroff: gnuplot.ms titlepag.ms
82: @if [ "$(srcdir)" = "$(top_builddir)" ] ; then \
83: tbl gnuplot.ms | neqn | nroff -ms | col > gnuplot.nroff ; \
84: else \
85: < gnuplot.ms sed "s,titlepag\.ms,$(srcdir)/titlepag\.ms," |\
86: tbl | neqn | nroff -ms | col > gnuplot.nroff ; \
87: fi
88:
89: ### doc2xxx dependencies
90: ms: gnuplot.ms
91:
92: gnuplot.ms: doc2ms $(srcdir)/gnuplot.doc
93: ./doc2ms $(srcdir)/gnuplot.doc gnuplot.ms
94:
95: doc2ms: doc2ms.o termdoc.o
96: $(LINK) doc2ms.o termdoc.o $(LIBS)
97:
98: doc2ms.o: doc2ms.c allterm.h
99: $(COMPILE) -DALL_TERM_DOC -c $(srcdir)/doc2ms.c
100:
101: ### html
102: html : gnuplot.html
103:
104: gnuplot.html : doc2html $(srcdir)/gnuplot.doc
105: ./doc2html $(srcdir)/gnuplot.doc gnuplot.html
106:
107: doc2html : doc2html.o termdoc.o xref.o
108: $(LINK) doc2html.o termdoc.o xref.o $(LDFLAGS) $(LIBS)
109:
110: doc2html.o: doc2html.c allterm.h
111: $(COMPILE) -DALL_TERM_DOC -c $(srcdir)/doc2html.c
112:
113: ### LaTeX documentation
114: tex: gnuplot.tex
115:
116: gnuplot.tex: doc2tex $(srcdir)/gnuplot.doc
117: ./doc2tex $(srcdir)/gnuplot.doc gnuplot.tex
118:
119: doc2tex: doc2tex.o termdoc.o
120: $(LINK) doc2tex.o termdoc.o $(LIBS)
121:
122: doc2tex.o: doc2tex.c allterm.h
123: $(COMPILE) -DALL_TERM_DOC -c $(srcdir)/doc2tex.c
124:
125: # this is how to make DVI files
126: dvi: gnuplot.dvi gpcard.dvi
127:
128: gnuplot.dvi: gnuplot.tex titlepag.tex toc_entr.sty
129: TEXINPUTS=.:$(srcdir): latex gnuplot
130: TEXINPUTS=.:$(srcdir): latex gnuplot
131:
132: gpcard.dvi: gpcard.tex
133: TEXINPUTS=.:$(srcdir): tex gpcard
134:
135: # this is how to make PostScript files
136: # if pslatex has been installed, add "times" to titlepage.tex
137: ps: gnuplot.ps gpcard.ps
138:
139: gnuplot.ps: gnuplot.dvi
140: $(DVIPS) gnuplot.dvi -o gnuplot.ps
141:
142: gpcard.ps: gpcard.dvi
143: $(DVIPS) gpcard.dvi -o gpcard.ps
144:
145:
146: # this is how to make gnuplot.hlp
147: hlp: gnuplot.hlp
148:
149: gnuplot.hlp: doc2hlp $(srcdir)/gnuplot.doc
150: ./doc2hlp $(srcdir)/gnuplot.doc gnuplot.hlp
151:
152: doc2hlp: doc2hlp.o termdoc.o
153: $(LINK) doc2hlp.o termdoc.o $(LIBS)
154:
155: # this is how to make gnuplot.gih
156: gih: gnuplot.gih
157:
158: gnuplot.gih: doc2gih $(srcdir)/gnuplot.doc
159: @rm -f alldoc2gih
160: ./doc2gih $(srcdir)/gnuplot.doc gnuplot.gih
161:
162: doc2gih: doc2gih.o termdoc.o
163: $(LINK) doc2gih.o termdoc.o $(LIBS)
164:
165: # To include all terminals in the .gih file
166: allgih: alldoc2gih $(srcdir)/gnuplot.doc
167: @rm -f doc2gih
168: ./alldoc2gih $(srcdir)/gnuplot.doc gnuplot.gih
169:
170: alldoc2gih: alldoc2gih.o termdoc.o
171: $(LINK) alldoc2gih.o termdoc.o $(LIBS)
172:
173: alldoc2gih.o: doc2gih.c allterm.h
174: $(COMPILE) -DALL_TERM_DOC -c $(srcdir)/doc2gih.c
175: @mv doc2gih.o alldoc2gih.o
176:
177: # this is how to make Info documentation
178: info: gnuplot.info
179:
180: gnuplot.info: doc2info $(srcdir)/gnuplot.doc
181: ./doc2info $(srcdir)/gnuplot.doc gnuplot.info
182:
183: doc2info: doc2info.o termdoc.o xref.o
184: $(LINK) doc2info.o termdoc.o xref.o $(LIBS)
185:
186: # this is how to make OS/2 ipfc documentation
187: ipf: gnuplot.ipf
188:
189: gnuplot.ipf: doc2ipf $(srcdir)/gnuplot.doc
190: ./doc2ipf $(srcdir)/gnuplot.doc gnuplot.ipf
191:
192: doc2ipf: doc2ipf.o termdoc.o xref.o
193: $(LINK) doc2ipf.o termdoc.o xref.o $(LIBS)
194:
195: # this is how to make rtf documentation
196: rtf: gnuplot.rtf
197:
198: gnuplot.rtf: doc2rtf $(srcdir)/gnuplot.doc
199: ./doc2rtf $(srcdir)/gnuplot.doc gnuplot.rtf
200:
201: doc2rtf: doc2rtf.o termdoc.o xref.o
202: $(LINK) doc2rtf.o termdoc.o xref.o $(LIBS)
203:
204: # this is how to make rnh documentation (VMS help format)
205: rnh: gnuplot.rnh
206:
207: gnuplot.rnh: doc2rnh $(srcdir)/gnuplot.doc
208: ./doc2rnh $(srcdir)/gnuplot.doc gnuplot.rnh
209:
210: doc2rnh: doc2rnh.o termdoc.o
211: $(LINK) doc2rnh.o termdoc.o $(LIBS)
212:
213: # end doc2xxx section
214:
215: tutorial: latextut/tutorial.tex
216: ( cd latextut; $(MAKE) )
217:
218: # this is how to check the gnuplot.doc file
219: check: checkdoc $(srcdir)/gnuplot.doc
220: ./checkdoc < $(srcdir)/gnuplot.doc
221:
222: checkdoc: checkdoc.o termdoc.o
223: $(LINK) checkdoc.o termdoc.o $(LIBS)
224:
225: checkdoc.o: checkdoc.c allterm.h
226: $(COMPILE) -DALL_TERM_DOC -c $(srcdir)/checkdoc.c
227:
228: # For Unix and MSDOS only
229: install: gnuplot.gih
230: $(INSTALL_DATA) gnuplot.gih $(datadir)/gnuplot.gih
231:
232: uninstall:
233: rm -f $(datadir)/gnuplot.gih
234:
235: # for VMS only
236: install-vms: gnuplot.hlp
237: $(INSTALL_DATA) gnuplot.hlp $(datadir)/gnuplot.hlp
238:
239: clean:
240: rm -f doc2tex gnuplot.tex gnuplot.dvi \
241: gnuplot.aux gnuplot.log gnuplot.toc \
242: gnuplot.ps gpcard.dvi gpcard.log gpcard.ps \
243: alldoc2gih doc2gih gnuplot.gih \
244: doc2hlp gnuplot.hlp \
245: doc2html gnuplot.html \
246: doc2info gnuplot.info* gpltinfo.tex \
247: doc2ipf gnuplot.ipf \
248: doc2ms gnuplot.ms \
249: doc2rnh gnuplot.rnh \
250: doc2rtf gnuplot.rtf \
251: gnuplot.nroff checkdoc *.o core a.out allterm.h
252: ( cd latextut; $(MAKE) clean )
253:
254: mostlyclean: clean
255:
256: distclean: clean
257: rm -f Makefile
258:
259: realclean: distclean
260: rm -f TAGS
261:
262: .c.o:
263: $(COMPILE) -c $<
264:
265: ### Dependencies - do not edit!
266:
267: # all doc2somethings depend on termdoc and either ../term.h or
268: # allterm.h, maybe this would be better as separate object file
269: # (but then we have to change all the other makefiles). Plus then
270: # we cannot make some doc2* filters use allterm.h and others use term.h
271:
272: TERM_H = $(srcdir)/../term.h
273:
274: checkdoc.o: checkdoc.c ../config.h $(srcdir)/../ansichek.h \
275: $(srcdir)/../stdfn.h doc2x.h allterm.h
276: alldoc2gih.o: doc2gih.c ../config.h $(srcdir)/../ansichek.h \
277: $(srcdir)/../stdfn.h doc2x.h allterm.h
278: doc2gih.o: doc2gih.c ../config.h $(srcdir)/../ansichek.h \
279: $(srcdir)/../stdfn.h doc2x.h $(TERM_H)
280: doc2hlp.o: doc2hlp.c ../config.h $(srcdir)/../ansichek.h \
281: $(srcdir)/../stdfn.h doc2x.h $(TERM_H)
282: doc2html.o: doc2html.c ../config.h $(srcdir)/../ansichek.h \
283: $(srcdir)/../stdfn.h doc2x.h allterm.h
284: doc2info.o: doc2info.c ../config.h $(srcdir)/../ansichek.h \
285: $(srcdir)/../stdfn.h doc2x.h $(TERM_H)
286: doc2ipf.o: doc2ipf.c ../config.h $(srcdir)/../ansichek.h \
287: $(srcdir)/../stdfn.h doc2x.h $(TERM_H)
288: doc2ms.o: doc2ms.c ../config.h $(srcdir)/../ansichek.h \
289: $(srcdir)/../stdfn.h doc2x.h allterm.h
290: doc2rnh.o: doc2rnh.c ../config.h $(srcdir)/../ansichek.h \
291: $(srcdir)/../stdfn.h doc2x.h $(TERM_H)
292: doc2rtf.o: doc2rtf.c ../config.h $(srcdir)/../ansichek.h \
293: $(srcdir)/../stdfn.h doc2x.h $(TERM_H)
294: doc2tex.o: doc2tex.c ../config.h $(srcdir)/../ansichek.h \
295: $(srcdir)/../stdfn.h doc2x.h allterm.h
296: termdoc.o: termdoc.c ../config.h $(srcdir)/../ansichek.h \
297: $(srcdir)/../stdfn.h doc2x.h
298: xref.o: xref.c ../config.h $(srcdir)/../ansichek.h \
299: $(srcdir)/../stdfn.h doc2x.h xref.h
300:
301: #the end
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>