Annotation of OpenXM_contrib/gnuplot/docs/Makefile.in, Revision 1.1.1.2
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:
1.1.1.2 ! maekawa 7: #
! 8: # For LaTeX
! 9: # make gnuplot.dvi
! 10: # (print or view gnuplot.dvi)
! 11: # or (requires pdflatex)
! 12: # make pdf
! 13: # (print or view gnuplot.pdf)
! 14: # or
! 15: # make ps
! 16: # (print or view gnuplot.ps)
! 17: #
! 18: # For groff (GNU troff}
! 19: # make grotxt
! 20: # (print or view gnuplot.txt)
! 21: # or
! 22: # make grodvi
! 23: # (print or view gnuplot.dvi)
! 24: # or
! 25: # make grops
! 26: # (print or view gnuplot.ps)
! 27: #
! 28: # For nroff
! 29: # make gnuplot.nroff
! 30: # (print or view gnuplot.nroff)
! 31: #
! 32: # For troff
! 33: # make "TROFF=itroff" troff (use your troff here)
1.1 maekawa 34: #
35:
36: # default is what is needed for interactive gnuplot
1.1.1.2 ! maekawa 37: all: gnuplot.gih
1.1 maekawa 38:
39: # this tells GNU make not to export variables into the environment
40: # But other makes dont understand its significance, so it must
41: # not be the first target in the file. So it is here, before
42: # any variables are created, but after the default target
43: .NOEXPORT:
44:
45: SHELL = /bin/sh
46:
47: prefix = @prefix@
48: exec_prefix = @exec_prefix@
49: bindir = @bindir@
50: datadir = @datadir@
1.1.1.2 ! maekawa 51: infodir = @infodir@
1.1 maekawa 52: srcdir = @srcdir@
1.1.1.2 ! maekawa 53: top_builddir = ..
1.1 maekawa 54: top_srcdir = @top_srcdir@
55: VPATH = @srcdir@
56:
57: INSTALL = @INSTALL@
58: INSTALL_PROGRAM = @INSTALL_PROGRAM@
59: INSTALL_DATA = @INSTALL_DATA@
60:
61: CC = @CC@
1.1.1.2 ! maekawa 62: CPP = @CPP@
1.1 maekawa 63: DEFS = @DEFS@
1.1.1.2 ! maekawa 64: CPPFLAGS = @CPPFLAGS@
1.1 maekawa 65: CFLAGS = @CFLAGS@
1.1.1.2 ! maekawa 66: INCLUDES = -I.. -I$(top_srcdir) -I$(top_srcdir)/term -I.
1.1 maekawa 67: LDFLAGS = @LDFLAGS@
1.1.1.2 ! maekawa 68: LIBS = @LIBS@
1.1 maekawa 69:
1.1.1.2 ! maekawa 70: COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
1.1 maekawa 71: LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
72:
1.1.1.2 ! maekawa 73: .c.o:
! 74: $(COMPILE) -c $<
! 75:
1.1 maekawa 76: # The makeinfo command from GNU texinfo
77: MAKEINFO = makeinfo
78:
1.1.1.2 ! maekawa 79: # If you want to try doc2texi.el
! 80: # EMACS = emacs
! 81:
1.1 maekawa 82: # substitute your troff command (and any flags) for this one
1.1.1.2 ! maekawa 83: TROFF = troff
! 84:
! 85: # LaTeX command, either latex or latex2e or no
! 86: LATEX = latex
! 87:
! 88: # PDFLaTeX command
! 89: PDFLATEX = pdflatex
1.1 maekawa 90:
91: # substitute your DVI to PostScript conversion program here
1.1.1.2 ! maekawa 92: DVIPS = dvips
1.1 maekawa 93:
1.1.1.2 ! maekawa 94: T = ${srcdir}/../term
! 95: CORETERM = $(T)/aed.trm $(T)/ai.trm $(T)/amiga.trm $(T)/apollo.trm \
! 96: $(T)/atariaes.trm $(T)/atarivdi.trm $(T)/be.trm $(T)/cgi.trm $(T)/cgm.trm \
! 97: $(T)/corel.trm $(T)/debug.trm $(T)/djsvga.trm $(T)/dumb.trm $(T)/dxf.trm \
! 98: $(T)/dxy.trm $(T)/eepic.trm $(T)/emxvga.trm $(T)/epson.trm $(T)/excl.trm \
! 99: $(T)/fg.trm $(T)/fig.trm $(T)/gif.trm $(T)/gnugraph.trm $(T)/gpic.trm \
! 100: $(T)/gpr.trm $(T)/grass.trm $(T)/hp26.trm $(T)/hp2648.trm $(T)/hp500c.trm \
! 101: $(T)/hpgl.trm $(T)/hpljii.trm $(T)/hppj.trm $(T)/imagen.trm $(T)/iris4d.trm \
! 102: $(T)/kyo.trm $(T)/latex.trm $(T)/linux.trm $(T)/mac.trm $(T)/metafont.trm \
! 103: $(T)/metapost.trm $(T)/mgr.trm $(T)/mif.trm $(T)/multitos.trm \
! 104: $(T)/next.trm $(T)/openstep.trm $(T)/pbm.trm $(T)/pc.trm $(T)/pm.trm \
! 105: $(T)/png.trm $(T)/post.trm $(T)/pslatex.trm $(T)/pstricks.trm $(T)/qms.trm \
! 106: $(T)/regis.trm $(T)/rgip.trm $(T)/sun.trm $(T)/t410x.trm $(T)/table.trm \
! 107: $(T)/tek.trm $(T)/texdraw.trm $(T)/tgif.trm $(T)/tkcanvas.trm $(T)/tpic.trm \
! 108: $(T)/unixpc.trm $(T)/unixplot.trm $(T)/v384.trm $(T)/vws.trm $(T)/win.trm \
! 109: $(T)/x11.trm $(T)/xlib.trm
! 110:
! 111: DIST_COMMON = README Makefile.in
! 112:
! 113: SOURCES = checkdoc.c doc2gih.c doc2hlp.c doc2html.c doc2info.c \
! 114: doc2ipf.c doc2ms.c doc2rnh.c doc2rtf.c doc2tex.c termdoc.c xref.c
! 115:
! 116: HEADERS = doc2x.h xref.h
! 117:
! 118: EXTRA_DIST = doc2hlp.com doc2texi.el doc2texi.pl gnuplot.1 gnuplot.doc \
! 119: gnuplot.texi gpcard.tex lasergnu.1 makefile.ami makefile.dst titlepag.ms \
! 120: titlepag.tex toc_entr.sty latextut old psdoc
1.1 maekawa 121:
1.1.1.2 ! maekawa 122: DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(EXTRA_DIST)
! 123:
! 124: allterm.h : $(CORETERM)
1.1 maekawa 125: @echo Building allterm.h
1.1.1.2 ! maekawa 126: @cat $(top_srcdir)/term/*.trm > allterm.c
! 127: $(CPP) -I$(top_srcdir)/term -DTERM_DRIVER_H -DTERM_HELP allterm.c | \
! 128: sed '/^ *$$/d;/^#/d' > allterm.h
! 129: @rm -f allterm.c
1.1 maekawa 130:
131: # for debugging
1.1.1.2 ! maekawa 132: alldoc: check dvi gih hlp html info ipf ms nroff pdf ps rnh rtf
1.1 maekawa 133:
134: ### [tn]roff documentation
135: troff: gnuplot.ms titlepag.ms
136: @if [ "$(srcdir)" = "$(top_builddir)" ] ; then \
137: tbl gnuplot.ms | eqn | $(TROFF) -ms ; \
138: else \
139: < gnuplot.ms sed "s,titlepag\.ms,$(srcdir)/titlepag\.ms," |\
140: tbl | eqn | $(TROFF) -ms ; \
141: fi
142:
143: nroff: gnuplot.nroff
144:
145: gnuplot.nroff: gnuplot.ms titlepag.ms
146: @if [ "$(srcdir)" = "$(top_builddir)" ] ; then \
147: tbl gnuplot.ms | neqn | nroff -ms | col > gnuplot.nroff ; \
148: else \
149: < gnuplot.ms sed "s,titlepag\.ms,$(srcdir)/titlepag\.ms," |\
150: tbl | neqn | nroff -ms | col > gnuplot.nroff ; \
151: fi
152:
1.1.1.2 ! maekawa 153: ### groff documentation
! 154:
! 155: groff: grotxt grodvi grops
! 156:
! 157: grotxt: gnuplot.ms titlepag.ms
! 158: @if [ "$(srcdir)" = "$(top_builddir)" ] ; then \
! 159: groff -s -p -t -e -ms -Tlatin1 gnuplot.ms > gnuplot.txt ; \
! 160: else \
! 161: sed "s,titlepag\.ms,$(srcdir)/titlepag\.ms," gnuplot.ms |\
! 162: groff -s -p -t -e -ms -Tlatin1 gnuplot.ms > gnuplot.txt ; \
! 163: fi
! 164:
! 165: grodvi: gnuplot.ms titlepag.ms
! 166: @if [ "$(srcdir)" = "$(top_builddir)" ] ; then \
! 167: groff -s -p -t -e -ms -Tdvi gnuplot.ms > gnuplot.dvi ; \
! 168: else \
! 169: sed "s,titlepag\.ms,$(srcdir)/titlepag\.ms," gnuplot.ms |\
! 170: groff -s -p -t -e -ms -Tdvi gnuplot.ms > gnuplot.dvi ; \
! 171: fi
! 172:
! 173: grops: gnuplot.ms titlepag.ms
! 174: @if [ "$(srcdir)" = "$(top_builddir)" ] ; then \
! 175: groff -s -p -t -e -ms -Tps gnuplot.ms > gnuplot.ps ; \
! 176: else \
! 177: sed "s,titlepag\.ms,$(srcdir)/titlepag\.ms," gnuplot.ms |\
! 178: groff -s -p -t -e -ms -Tps gnuplot.ms > gnuplot.ps ; \
! 179: fi
! 180:
1.1 maekawa 181: ### doc2xxx dependencies
182: ms: gnuplot.ms
183:
184: gnuplot.ms: doc2ms $(srcdir)/gnuplot.doc
185: ./doc2ms $(srcdir)/gnuplot.doc gnuplot.ms
186:
187: doc2ms: doc2ms.o termdoc.o
188: $(LINK) doc2ms.o termdoc.o $(LIBS)
189:
190: doc2ms.o: doc2ms.c allterm.h
191: $(COMPILE) -DALL_TERM_DOC -c $(srcdir)/doc2ms.c
192:
193: ### html
194: html : gnuplot.html
195:
196: gnuplot.html : doc2html $(srcdir)/gnuplot.doc
197: ./doc2html $(srcdir)/gnuplot.doc gnuplot.html
198:
199: doc2html : doc2html.o termdoc.o xref.o
200: $(LINK) doc2html.o termdoc.o xref.o $(LDFLAGS) $(LIBS)
201:
202: doc2html.o: doc2html.c allterm.h
203: $(COMPILE) -DALL_TERM_DOC -c $(srcdir)/doc2html.c
204:
1.1.1.2 ! maekawa 205: ### PDF documentation
! 206: pdf: gnuplot.pdf
! 207:
! 208: gnuplot.pdf: gnuplot.tex
! 209: @if test $(PDFLATEX) != no ; then \
! 210: TEXINPUTS=.:$(srcdir):${TEXINPUTS}: $(PDFLATEX) gnuplot ; \
! 211: TEXINPUTS=.:$(srcdir):${TEXINPUTS}: $(PDFLATEX) gnuplot ; \
! 212: else \
! 213: echo pdflatex not found - cannot build pdf file ; \
! 214: fi
! 215:
1.1 maekawa 216: ### LaTeX documentation
217: tex: gnuplot.tex
218:
219: gnuplot.tex: doc2tex $(srcdir)/gnuplot.doc
220: ./doc2tex $(srcdir)/gnuplot.doc gnuplot.tex
221:
222: doc2tex: doc2tex.o termdoc.o
223: $(LINK) doc2tex.o termdoc.o $(LIBS)
224:
225: doc2tex.o: doc2tex.c allterm.h
226: $(COMPILE) -DALL_TERM_DOC -c $(srcdir)/doc2tex.c
227:
228: # this is how to make DVI files
229: dvi: gnuplot.dvi gpcard.dvi
230:
231: gnuplot.dvi: gnuplot.tex titlepag.tex toc_entr.sty
1.1.1.2 ! maekawa 232: @if test $(LATEX) != no ; then \
! 233: TEXINPUTS=.:$(srcdir):${TEXINPUTS}: $(LATEX) gnuplot ; \
! 234: TEXINPUTS=.:$(srcdir):${TEXINPUTS}: $(LATEX) gnuplot ; \
! 235: else \
! 236: echo latex not found - cannot build dvi file ; \
! 237: fi
1.1 maekawa 238:
239: gpcard.dvi: gpcard.tex
240: TEXINPUTS=.:$(srcdir): tex gpcard
241:
1.1.1.2 ! maekawa 242: ### Postscript format
1.1 maekawa 243: # if pslatex has been installed, add "times" to titlepage.tex
244: ps: gnuplot.ps gpcard.ps
245:
246: gnuplot.ps: gnuplot.dvi
247: $(DVIPS) gnuplot.dvi -o gnuplot.ps
248:
249: gpcard.ps: gpcard.dvi
250: $(DVIPS) gpcard.dvi -o gpcard.ps
251:
252:
253: # this is how to make gnuplot.hlp
254: hlp: gnuplot.hlp
255:
256: gnuplot.hlp: doc2hlp $(srcdir)/gnuplot.doc
257: ./doc2hlp $(srcdir)/gnuplot.doc gnuplot.hlp
258:
259: doc2hlp: doc2hlp.o termdoc.o
260: $(LINK) doc2hlp.o termdoc.o $(LIBS)
261:
1.1.1.2 ! maekawa 262: ### gnuplot interactive help format
1.1 maekawa 263: gih: gnuplot.gih
264:
265: gnuplot.gih: doc2gih $(srcdir)/gnuplot.doc
266: @rm -f alldoc2gih
267: ./doc2gih $(srcdir)/gnuplot.doc gnuplot.gih
268:
269: doc2gih: doc2gih.o termdoc.o
270: $(LINK) doc2gih.o termdoc.o $(LIBS)
271:
272: # To include all terminals in the .gih file
273: allgih: alldoc2gih $(srcdir)/gnuplot.doc
274: @rm -f doc2gih
275: ./alldoc2gih $(srcdir)/gnuplot.doc gnuplot.gih
276:
277: alldoc2gih: alldoc2gih.o termdoc.o
278: $(LINK) alldoc2gih.o termdoc.o $(LIBS)
279:
280: alldoc2gih.o: doc2gih.c allterm.h
281: $(COMPILE) -DALL_TERM_DOC -c $(srcdir)/doc2gih.c
282: @mv doc2gih.o alldoc2gih.o
283:
1.1.1.2 ! maekawa 284: ### GNU info format
1.1 maekawa 285: info: gnuplot.info
286:
287: gnuplot.info: doc2info $(srcdir)/gnuplot.doc
288: ./doc2info $(srcdir)/gnuplot.doc gnuplot.info
289:
290: doc2info: doc2info.o termdoc.o xref.o
291: $(LINK) doc2info.o termdoc.o xref.o $(LIBS)
292:
1.1.1.2 ! maekawa 293: ## An alternative to doc2info.c, Thanks to Bruce Ravel
! 294: #gnuplot.info: $(srcdir)/gnuplot.texi $(srcdir)/gnuplot.doc
! 295: # $(MAKEINFO) -I$(srcdir) $(srcdir)/gnuplot.texi --no-split --output=$@
! 296: #gnuplot.texi: $(srcdir)/doc2info.el $(srcdir)/gnuplot.doc
! 297: # @if test "$(EMACS)" != no; then \
! 298: # $(EMACS) -batch -l $(srcdir)/doc2texi.el -f d2t-doc-to-texi; \
! 299: # else \
! 300: # @echo No emacs found - cannot create texinfo file; \
! 301: # fi
! 302:
1.1 maekawa 303: # this is how to make OS/2 ipfc documentation
304: ipf: gnuplot.ipf
305:
306: gnuplot.ipf: doc2ipf $(srcdir)/gnuplot.doc
307: ./doc2ipf $(srcdir)/gnuplot.doc gnuplot.ipf
308:
309: doc2ipf: doc2ipf.o termdoc.o xref.o
310: $(LINK) doc2ipf.o termdoc.o xref.o $(LIBS)
311:
1.1.1.2 ! maekawa 312: ### Rich Text Format
1.1 maekawa 313: rtf: gnuplot.rtf
314:
315: gnuplot.rtf: doc2rtf $(srcdir)/gnuplot.doc
316: ./doc2rtf $(srcdir)/gnuplot.doc gnuplot.rtf
317:
318: doc2rtf: doc2rtf.o termdoc.o xref.o
319: $(LINK) doc2rtf.o termdoc.o xref.o $(LIBS)
320:
321: # this is how to make rnh documentation (VMS help format)
322: rnh: gnuplot.rnh
323:
324: gnuplot.rnh: doc2rnh $(srcdir)/gnuplot.doc
325: ./doc2rnh $(srcdir)/gnuplot.doc gnuplot.rnh
326:
327: doc2rnh: doc2rnh.o termdoc.o
328: $(LINK) doc2rnh.o termdoc.o $(LIBS)
329:
330: # end doc2xxx section
331:
332: tutorial: latextut/tutorial.tex
333: ( cd latextut; $(MAKE) )
334:
335: # this is how to check the gnuplot.doc file
1.1.1.2 ! maekawa 336: check: all checkdoc
! 337: @./checkdoc < $(srcdir)/gnuplot.doc; \
! 338: if test $$? -eq 0; then \
! 339: echo "PASS: gnuplot.doc"; \
! 340: else \
! 341: :; \
! 342: fi
1.1 maekawa 343:
1.1.1.2 ! maekawa 344: checkdoc: checkdoc.o termdoc.o $(srcdir)/gnuplot.doc
1.1 maekawa 345: $(LINK) checkdoc.o termdoc.o $(LIBS)
346:
347: checkdoc.o: checkdoc.c allterm.h
348: $(COMPILE) -DALL_TERM_DOC -c $(srcdir)/checkdoc.c
349:
350: # For Unix and MSDOS only
351: install: gnuplot.gih
1.1.1.2 ! maekawa 352: $(top_srcdir)/mkinstalldirs $(datadir)
1.1 maekawa 353: $(INSTALL_DATA) gnuplot.gih $(datadir)/gnuplot.gih
354:
355: uninstall:
356: rm -f $(datadir)/gnuplot.gih
357:
358: # for VMS only
359: install-vms: gnuplot.hlp
360: $(INSTALL_DATA) gnuplot.hlp $(datadir)/gnuplot.hlp
361:
1.1.1.2 ! maekawa 362: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
! 363:
! 364: subdir = docs
! 365:
! 366:
! 367: distdir: $(DISTFILES)
! 368: distdir=`cd $(distdir) && pwd`
! 369: @for file in $(DISTFILES); do \
! 370: d=$(srcdir); \
! 371: if test -d $$d/$$file; then \
! 372: cp -pr $$d/$$file $(distdir)/$$file; \
! 373: else \
! 374: test -f $(distdir)/$$file \
! 375: || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
! 376: || cp -p $$d/$$file $(distdir)/$$file || :; \
! 377: fi; \
! 378: done
! 379:
1.1 maekawa 380: clean:
1.1.1.2 ! maekawa 381: -rm -f doc2tex gnuplot.tex gnuplot.dvi \
1.1 maekawa 382: gnuplot.aux gnuplot.log gnuplot.toc \
383: gnuplot.ps gpcard.dvi gpcard.log gpcard.ps \
384: alldoc2gih doc2gih gnuplot.gih \
385: doc2hlp gnuplot.hlp \
386: doc2html gnuplot.html \
387: doc2info gnuplot.info* gpltinfo.tex \
388: doc2ipf gnuplot.ipf \
389: doc2ms gnuplot.ms \
390: doc2rnh gnuplot.rnh \
391: doc2rtf gnuplot.rtf \
392: gnuplot.nroff checkdoc *.o core a.out allterm.h
393: ( cd latextut; $(MAKE) clean )
1.1.1.2 ! maekawa 394: rm -f *.exe
1.1 maekawa 395:
396: mostlyclean: clean
397:
398: distclean: clean
1.1.1.2 ! maekawa 399: -rm -f Makefile
1.1 maekawa 400:
401: realclean: distclean
1.1.1.2 ! maekawa 402: -rm -f TAGS
1.1 maekawa 403:
1.1.1.2 ! maekawa 404: Makefile: Makefile.in ../config.status
! 405: cd .. \
! 406: && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
1.1 maekawa 407:
408: ### Dependencies - do not edit!
409:
410: # all doc2somethings depend on termdoc and either ../term.h or
411: # allterm.h, maybe this would be better as separate object file
412: # (but then we have to change all the other makefiles). Plus then
413: # we cannot make some doc2* filters use allterm.h and others use term.h
414:
1.1.1.2 ! maekawa 415: TERM_H = $(top_srcdir)/term.h
1.1 maekawa 416:
1.1.1.2 ! maekawa 417: checkdoc.o: checkdoc.c ../config.h $(top_srcdir)/ansichek.h \
! 418: $(top_srcdir)/stdfn.h doc2x.h allterm.h
! 419: alldoc2gih.o: doc2gih.c ../config.h $(top_srcdir)/ansichek.h \
! 420: $(top_srcdir)/stdfn.h doc2x.h allterm.h
! 421: doc2gih.o: doc2gih.c ../config.h $(top_srcdir)/ansichek.h \
! 422: $(top_srcdir)/stdfn.h doc2x.h $(TERM_H)
! 423: doc2hlp.o: doc2hlp.c ../config.h $(top_srcdir)/ansichek.h \
! 424: $(top_srcdir)/stdfn.h doc2x.h $(TERM_H)
! 425: doc2html.o: doc2html.c ../config.h $(top_srcdir)/ansichek.h \
! 426: $(top_srcdir)/stdfn.h doc2x.h allterm.h
! 427: doc2info.o: doc2info.c ../config.h $(top_srcdir)/ansichek.h \
! 428: $(top_srcdir)/stdfn.h doc2x.h $(TERM_H)
! 429: doc2ipf.o: doc2ipf.c ../config.h $(top_srcdir)/ansichek.h \
! 430: $(top_srcdir)/stdfn.h doc2x.h $(TERM_H)
! 431: doc2ms.o: doc2ms.c ../config.h $(top_srcdir)/ansichek.h \
! 432: $(top_srcdir)/stdfn.h doc2x.h allterm.h
! 433: doc2rnh.o: doc2rnh.c ../config.h $(top_srcdir)/ansichek.h \
! 434: $(top_srcdir)/stdfn.h doc2x.h $(TERM_H)
! 435: doc2rtf.o: doc2rtf.c ../config.h $(top_srcdir)/ansichek.h \
! 436: $(top_srcdir)/stdfn.h doc2x.h $(TERM_H)
! 437: doc2tex.o: doc2tex.c ../config.h $(top_srcdir)/ansichek.h \
! 438: $(top_srcdir)/stdfn.h doc2x.h allterm.h
! 439: termdoc.o: termdoc.c ../config.h $(top_srcdir)/ansichek.h \
! 440: $(top_srcdir)/stdfn.h doc2x.h
! 441: xref.o: xref.c ../config.h $(top_srcdir)/ansichek.h \
! 442: $(top_srcdir)/stdfn.h doc2x.h xref.h
1.1 maekawa 443:
444: #the end
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>