File: Makefile.in

package info (click to toggle)
gnuplot 3.7.1p1-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,808 kB
  • ctags: 4,418
  • sloc: ansic: 43,279; lisp: 661; makefile: 647; asm: 539; sh: 416; objc: 379; csh: 297; pascal: 194; perl: 138
file content (444 lines) | stat: -rw-r--r-- 12,655 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
# Makefile.in for GNUPLOT documentation
#
# Note that the top-level file for documentation is gnuplot.doc.
# See README.
#
# To print manual:
#
#   For LaTeX
#       make gnuplot.dvi
#       (print or view gnuplot.dvi)
#     or (requires pdflatex)
#       make pdf
#       (print or view gnuplot.pdf)
#     or
#       make ps
#       (print or view gnuplot.ps)
#
#   For groff (GNU troff}
#       make grotxt
#       (print or view gnuplot.txt)
#     or
#       make grodvi
#       (print or view gnuplot.dvi)
#     or
#       make grops
#       (print or view gnuplot.ps)
#
#   For nroff
#     make gnuplot.nroff
#     (print or view gnuplot.nroff)
#
#   For troff
#     make "TROFF=itroff" troff    (use your troff here)
#

# default is what is needed for interactive gnuplot
all: gnuplot.gih

# this tells GNU make not to export variables into the environment
# But other makes dont understand its significance, so it must
# not be the first target in the file. So it is here, before
# any variables are created, but after the default target
.NOEXPORT:

SHELL = /bin/sh

prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
datadir = @datadir@
infodir = @infodir@
srcdir = @srcdir@
top_builddir = ..
top_srcdir = @top_srcdir@
VPATH = @srcdir@

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@

CC     = @CC@
CPP    = @CPP@
DEFS   = @DEFS@
CPPFLAGS = @CPPFLAGS@
CFLAGS = @CFLAGS@
INCLUDES = -I.. -I$(top_srcdir) -I$(top_srcdir)/term -I.
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@

COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@

.c.o:
	$(COMPILE) -c $<

# The makeinfo command from GNU texinfo
MAKEINFO = makeinfo

# If you want to try doc2texi.el
# EMACS = emacs

# substitute your troff command (and any flags) for this one
TROFF = troff

# LaTeX command, either latex or latex2e or no
LATEX = latex

# PDFLaTeX command
PDFLATEX = pdflatex

# substitute your DVI to PostScript conversion program here
DVIPS = dvips

T = ${srcdir}/../term
CORETERM = $(T)/aed.trm $(T)/ai.trm $(T)/amiga.trm $(T)/apollo.trm \
$(T)/atariaes.trm $(T)/atarivdi.trm $(T)/be.trm $(T)/cgi.trm $(T)/cgm.trm \
$(T)/corel.trm $(T)/debug.trm $(T)/djsvga.trm $(T)/dumb.trm $(T)/dxf.trm \
$(T)/dxy.trm $(T)/eepic.trm $(T)/emxvga.trm $(T)/epson.trm $(T)/excl.trm \
$(T)/fg.trm $(T)/fig.trm $(T)/gif.trm $(T)/gnugraph.trm $(T)/gpic.trm \
$(T)/gpr.trm $(T)/grass.trm $(T)/hp26.trm $(T)/hp2648.trm $(T)/hp500c.trm \
$(T)/hpgl.trm $(T)/hpljii.trm $(T)/hppj.trm $(T)/imagen.trm $(T)/iris4d.trm \
$(T)/kyo.trm $(T)/latex.trm $(T)/linux.trm $(T)/mac.trm $(T)/metafont.trm \
$(T)/metapost.trm $(T)/mgr.trm $(T)/mif.trm $(T)/multitos.trm \
$(T)/next.trm $(T)/openstep.trm $(T)/pbm.trm $(T)/pc.trm $(T)/pm.trm \
$(T)/png.trm $(T)/post.trm $(T)/pslatex.trm $(T)/pstricks.trm $(T)/qms.trm \
$(T)/regis.trm $(T)/rgip.trm $(T)/sun.trm $(T)/t410x.trm $(T)/table.trm \
$(T)/tek.trm $(T)/texdraw.trm $(T)/tgif.trm $(T)/tkcanvas.trm $(T)/tpic.trm \
$(T)/unixpc.trm $(T)/unixplot.trm $(T)/v384.trm $(T)/vws.trm $(T)/win.trm \
$(T)/x11.trm $(T)/xlib.trm

DIST_COMMON = README Makefile.in

SOURCES = checkdoc.c doc2gih.c doc2hlp.c doc2html.c doc2info.c \
doc2ipf.c doc2ms.c doc2rnh.c doc2rtf.c doc2tex.c termdoc.c xref.c

HEADERS = doc2x.h xref.h

EXTRA_DIST = doc2hlp.com doc2texi.el doc2texi.pl gnuplot.1 gnuplot.doc \
gnuplot.texi gpcard.tex lasergnu.1 makefile.ami makefile.dst titlepag.ms \
titlepag.tex toc_entr.sty latextut old psdoc

DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(EXTRA_DIST)

allterm.h : $(CORETERM)
	@echo Building allterm.h
	@cat $(top_srcdir)/term/*.trm > allterm.c
	$(CPP) -I$(top_srcdir)/term -DTERM_DRIVER_H -DTERM_HELP allterm.c | \
	  sed '/^ *$$/d;/^#/d' > allterm.h
	@rm -f allterm.c

# for debugging
alldoc: check dvi gih hlp html info ipf ms nroff pdf ps rnh rtf

### [tn]roff documentation
troff: gnuplot.ms titlepag.ms
	@if [ "$(srcdir)" = "$(top_builddir)" ] ; then \
	    tbl gnuplot.ms | eqn | $(TROFF) -ms ; \
	else \
	    < gnuplot.ms sed "s,titlepag\.ms,$(srcdir)/titlepag\.ms," |\
	      tbl | eqn | $(TROFF) -ms ; \
	fi

nroff: gnuplot.nroff

gnuplot.nroff: gnuplot.ms titlepag.ms
	@if [ "$(srcdir)" = "$(top_builddir)" ] ; then \
	    tbl gnuplot.ms | neqn | nroff -ms | col > gnuplot.nroff ; \
	else \
	    < gnuplot.ms sed "s,titlepag\.ms,$(srcdir)/titlepag\.ms," |\
	      tbl | neqn | nroff -ms | col > gnuplot.nroff ; \
	fi

### groff documentation

groff: grotxt grodvi grops

grotxt: gnuplot.ms titlepag.ms
	@if [ "$(srcdir)" = "$(top_builddir)" ] ; then \
	    groff -s -p -t -e -ms -Tlatin1 gnuplot.ms > gnuplot.txt ; \
	else \
	    sed "s,titlepag\.ms,$(srcdir)/titlepag\.ms," gnuplot.ms |\
	      groff -s -p -t -e -ms -Tlatin1 gnuplot.ms > gnuplot.txt ; \
	fi

grodvi: gnuplot.ms titlepag.ms
	@if [ "$(srcdir)" = "$(top_builddir)" ] ; then \
	    groff -s -p -t -e -ms -Tdvi gnuplot.ms > gnuplot.dvi ; \
	else \
	    sed "s,titlepag\.ms,$(srcdir)/titlepag\.ms," gnuplot.ms |\
	      groff -s -p -t -e -ms -Tdvi gnuplot.ms > gnuplot.dvi ; \
	fi

grops: gnuplot.ms titlepag.ms
	@if [ "$(srcdir)" = "$(top_builddir)" ] ; then \
	    groff -s -p -t -e -ms -Tps gnuplot.ms > gnuplot.ps ; \
	else \
	    sed "s,titlepag\.ms,$(srcdir)/titlepag\.ms," gnuplot.ms |\
	      groff -s -p -t -e -ms -Tps gnuplot.ms > gnuplot.ps ; \
	fi

### doc2xxx dependencies
ms: gnuplot.ms

gnuplot.ms: doc2ms $(srcdir)/gnuplot.doc
	./doc2ms $(srcdir)/gnuplot.doc gnuplot.ms

doc2ms: doc2ms.o termdoc.o
	$(LINK) doc2ms.o termdoc.o $(LIBS)

doc2ms.o: doc2ms.c allterm.h
	$(COMPILE) -DALL_TERM_DOC -c $(srcdir)/doc2ms.c

### html
html : gnuplot.html

gnuplot.html : doc2html $(srcdir)/gnuplot.doc
	./doc2html $(srcdir)/gnuplot.doc gnuplot.html

doc2html : doc2html.o termdoc.o xref.o
	$(LINK) doc2html.o termdoc.o xref.o $(LDFLAGS) $(LIBS)

doc2html.o: doc2html.c allterm.h
	$(COMPILE) -DALL_TERM_DOC -c $(srcdir)/doc2html.c

### PDF documentation
pdf: gnuplot.pdf

gnuplot.pdf: gnuplot.tex
	@if test $(PDFLATEX) != no ; then \
	  TEXINPUTS=.:$(srcdir):${TEXINPUTS}: $(PDFLATEX) gnuplot ; \
	  TEXINPUTS=.:$(srcdir):${TEXINPUTS}: $(PDFLATEX) gnuplot ; \
	else \
	  echo pdflatex not found - cannot build pdf file ; \
	fi

### LaTeX documentation
tex: gnuplot.tex

gnuplot.tex: doc2tex $(srcdir)/gnuplot.doc
	./doc2tex $(srcdir)/gnuplot.doc gnuplot.tex

doc2tex: doc2tex.o termdoc.o
	$(LINK) doc2tex.o termdoc.o $(LIBS)

doc2tex.o: doc2tex.c allterm.h
	$(COMPILE) -DALL_TERM_DOC -c $(srcdir)/doc2tex.c

# this is how to make DVI files
dvi: gnuplot.dvi gpcard.dvi

gnuplot.dvi: gnuplot.tex titlepag.tex toc_entr.sty
	@if test $(LATEX) != no ; then \
	  TEXINPUTS=.:$(srcdir):${TEXINPUTS}: $(LATEX) gnuplot ; \
	  TEXINPUTS=.:$(srcdir):${TEXINPUTS}: $(LATEX) gnuplot ; \
	else \
	  echo latex not found - cannot build dvi file ; \
	fi

gpcard.dvi: gpcard.tex
	TEXINPUTS=.:$(srcdir): tex gpcard

### Postscript format
# if pslatex has been installed, add "times" to titlepage.tex
ps: gnuplot.ps gpcard.ps

gnuplot.ps: gnuplot.dvi
	$(DVIPS) gnuplot.dvi -o gnuplot.ps

gpcard.ps: gpcard.dvi
	$(DVIPS) gpcard.dvi -o gpcard.ps


# this is how to make gnuplot.hlp
hlp: gnuplot.hlp

gnuplot.hlp: doc2hlp $(srcdir)/gnuplot.doc
	./doc2hlp $(srcdir)/gnuplot.doc gnuplot.hlp

doc2hlp: doc2hlp.o termdoc.o
	$(LINK) doc2hlp.o termdoc.o $(LIBS)

### gnuplot interactive help format
gih: gnuplot.gih

gnuplot.gih: doc2gih $(srcdir)/gnuplot.doc
	@rm -f alldoc2gih
	./doc2gih $(srcdir)/gnuplot.doc gnuplot.gih

doc2gih: doc2gih.o termdoc.o
	$(LINK) doc2gih.o termdoc.o $(LIBS)

# To include all terminals in the .gih file
allgih: alldoc2gih $(srcdir)/gnuplot.doc
	@rm -f doc2gih
	./alldoc2gih $(srcdir)/gnuplot.doc gnuplot.gih

alldoc2gih: alldoc2gih.o termdoc.o
	$(LINK) alldoc2gih.o termdoc.o $(LIBS)

alldoc2gih.o: doc2gih.c allterm.h
	$(COMPILE) -DALL_TERM_DOC -c $(srcdir)/doc2gih.c
	@mv doc2gih.o alldoc2gih.o

### GNU info format
info: gnuplot.info

gnuplot.info: doc2info $(srcdir)/gnuplot.doc
	./doc2info $(srcdir)/gnuplot.doc gnuplot.info

doc2info: doc2info.o termdoc.o xref.o
	$(LINK) doc2info.o termdoc.o xref.o $(LIBS)

## An alternative to doc2info.c, Thanks to Bruce Ravel
#gnuplot.info: $(srcdir)/gnuplot.texi $(srcdir)/gnuplot.doc
#	$(MAKEINFO) -I$(srcdir) $(srcdir)/gnuplot.texi --no-split --output=$@
#gnuplot.texi: $(srcdir)/doc2info.el $(srcdir)/gnuplot.doc
#	@if test "$(EMACS)" != no; then \
#	  $(EMACS) -batch -l $(srcdir)/doc2texi.el -f d2t-doc-to-texi; \
#	else \
#	  @echo No emacs found - cannot create texinfo file; \
#	fi

# this is how to make OS/2 ipfc documentation
ipf: gnuplot.ipf

gnuplot.ipf: doc2ipf $(srcdir)/gnuplot.doc
	./doc2ipf $(srcdir)/gnuplot.doc gnuplot.ipf

doc2ipf: doc2ipf.o termdoc.o xref.o
	$(LINK) doc2ipf.o termdoc.o xref.o $(LIBS)

### Rich Text Format
rtf: gnuplot.rtf

gnuplot.rtf: doc2rtf $(srcdir)/gnuplot.doc
	./doc2rtf $(srcdir)/gnuplot.doc gnuplot.rtf

doc2rtf: doc2rtf.o termdoc.o xref.o
	$(LINK) doc2rtf.o termdoc.o xref.o $(LIBS)

# this is how to make rnh documentation (VMS help format)
rnh: gnuplot.rnh

gnuplot.rnh: doc2rnh $(srcdir)/gnuplot.doc
	./doc2rnh $(srcdir)/gnuplot.doc gnuplot.rnh

doc2rnh: doc2rnh.o termdoc.o
	$(LINK) doc2rnh.o termdoc.o $(LIBS)

# end doc2xxx section

tutorial: latextut/tutorial.tex
	( cd latextut; $(MAKE) )

# this is how to check the gnuplot.doc file
check: all checkdoc
	@./checkdoc < $(srcdir)/gnuplot.doc; \
	if test $$? -eq 0; then \
	  echo "PASS: gnuplot.doc"; \
	else \
	  :; \
	fi

checkdoc: checkdoc.o termdoc.o $(srcdir)/gnuplot.doc
	$(LINK) checkdoc.o termdoc.o $(LIBS)

checkdoc.o: checkdoc.c allterm.h
	$(COMPILE) -DALL_TERM_DOC -c $(srcdir)/checkdoc.c

# For Unix and MSDOS only
install: gnuplot.gih
	$(top_srcdir)/mkinstalldirs $(datadir)
	$(INSTALL_DATA) gnuplot.gih $(datadir)/gnuplot.gih

uninstall:
	rm -f $(datadir)/gnuplot.gih

# for VMS only
install-vms: gnuplot.hlp
	$(INSTALL_DATA) gnuplot.hlp $(datadir)/gnuplot.hlp

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)

subdir = docs


distdir: $(DISTFILES)
	distdir=`cd $(distdir) && pwd`
	@for file in $(DISTFILES); do \
	  d=$(srcdir); \
	  if test -d $$d/$$file; then \
	    cp -pr $$d/$$file $(distdir)/$$file; \
	  else \
	    test -f $(distdir)/$$file \
	    || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
	    || cp -p $$d/$$file $(distdir)/$$file || :; \
	  fi; \
	done

clean:
	-rm -f doc2tex gnuplot.tex gnuplot.dvi \
	  gnuplot.aux gnuplot.log gnuplot.toc \
	  gnuplot.ps gpcard.dvi gpcard.log gpcard.ps \
	  alldoc2gih doc2gih gnuplot.gih \
	  doc2hlp gnuplot.hlp \
	  doc2html gnuplot.html \
	  doc2info gnuplot.info* gpltinfo.tex \
	  doc2ipf gnuplot.ipf \
	  doc2ms gnuplot.ms \
	  doc2rnh gnuplot.rnh \
	  doc2rtf gnuplot.rtf \
	  gnuplot.nroff checkdoc *.o core a.out allterm.h
	( cd latextut; $(MAKE) clean )
	rm -f *.exe

mostlyclean: clean

distclean: clean
	-rm -f Makefile

realclean: distclean
	-rm -f TAGS

Makefile: Makefile.in ../config.status
	cd .. \
	  && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status

### Dependencies - do not edit!

# all doc2somethings depend on termdoc and either ../term.h or
# allterm.h, maybe this would be better as separate object file
# (but then we have to change all the other makefiles). Plus then
# we cannot make some doc2* filters use allterm.h and others use term.h

TERM_H = $(top_srcdir)/term.h

checkdoc.o: checkdoc.c ../config.h $(top_srcdir)/ansichek.h \
		$(top_srcdir)/stdfn.h doc2x.h allterm.h
alldoc2gih.o: doc2gih.c ../config.h $(top_srcdir)/ansichek.h \
		$(top_srcdir)/stdfn.h doc2x.h allterm.h
doc2gih.o: doc2gih.c ../config.h $(top_srcdir)/ansichek.h \
		$(top_srcdir)/stdfn.h doc2x.h $(TERM_H)
doc2hlp.o: doc2hlp.c ../config.h $(top_srcdir)/ansichek.h \
		$(top_srcdir)/stdfn.h doc2x.h $(TERM_H)
doc2html.o: doc2html.c ../config.h $(top_srcdir)/ansichek.h \
		$(top_srcdir)/stdfn.h doc2x.h allterm.h
doc2info.o: doc2info.c ../config.h $(top_srcdir)/ansichek.h \
		$(top_srcdir)/stdfn.h doc2x.h $(TERM_H)
doc2ipf.o: doc2ipf.c ../config.h $(top_srcdir)/ansichek.h \
		$(top_srcdir)/stdfn.h doc2x.h $(TERM_H)
doc2ms.o: doc2ms.c ../config.h $(top_srcdir)/ansichek.h \
		$(top_srcdir)/stdfn.h doc2x.h allterm.h
doc2rnh.o: doc2rnh.c ../config.h $(top_srcdir)/ansichek.h \
		$(top_srcdir)/stdfn.h doc2x.h $(TERM_H)
doc2rtf.o: doc2rtf.c ../config.h $(top_srcdir)/ansichek.h \
		$(top_srcdir)/stdfn.h doc2x.h $(TERM_H)
doc2tex.o: doc2tex.c ../config.h $(top_srcdir)/ansichek.h \
		$(top_srcdir)/stdfn.h doc2x.h allterm.h
termdoc.o: termdoc.c ../config.h $(top_srcdir)/ansichek.h \
		$(top_srcdir)/stdfn.h doc2x.h
xref.o: xref.c ../config.h $(top_srcdir)/ansichek.h \
		$(top_srcdir)/stdfn.h doc2x.h xref.h

#the end