forked from gnuplot/gnuplot-old
/
Makefile.in
501 lines (411 loc) · 18 KB
/
Makefile.in
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
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
############################################################
#
# $Id: Makefile.in,v 1.38 1998/12/10 18:33:30 lhecking Exp $
#
# GNUPLOT Makefile.in for autoconf (Unix X11 support)
# Adapted from makefile.unx by djm@gnu.ai.mit.edu
############################################################
# default target
all: @ERRORFIX@ gnuplot @GNUPLOT_X11@ doc demo/binary1
# this tells GNU make not to export variables into the environment
# But other makes don't 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
PACKAGE=@PACKAGE@
VERSION=@VERSION@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
datadir = @datadir@
includedir = @includedir@
libdir = @libdir@
mandir = @mandir@
srcdir = @srcdir@
top_builddir = .
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@SET_MAKE@
HELPFILE=$(datadir)/gnuplot.gih
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
CC = @CC@
CPPFLAGS = @CPPFLAGS@
DEFS = @DEFS@
INCLUDES = -I. -I$(top_srcdir)
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
# This stuff is obsolete now. Use the appropriate configure options!
#
# Additional devices you can add.
# -DAPOLLO Apollo Graphics Primitive Resource (window resize after replot)
# -DGPR Apollo Graphics Primitive Resource (fixed-size window)
# -DCGI SCO CGI
# -DIRIS IRIS4D series computer
# -DSUN Sun Microsystems Workstation
# -DLINUXVGA Linux PC with SuperVGA library
# -DUNIXPC unixpc (ATT 3b1 or ATT 7300)
# -DUNIXPLOT unixplot
# -DGNUGRAPH use GNU graphics version of UNIX plot library
# This can only be used in combination with -DUNIXPLOT
# TERMFLAGS = @TERMFLAGS@
# -lplot if you have -DUNIXPLOT in TERMFLAGS
# -lsuntool -lsunwindow -lpixrect if you have -DSUN in TERMFLAGS
# -lgl_s if -DIRIS in TERMFLAGS
# -lccgi if -DCGI in TERMFLAGS
# -lvga if -DLINUXVGA in TERMFLAGS
TERMLIBS = @TERMLIBS@
TERMXLIBS = @TERMXLIBS@
LIBS = @LIBS@
XLIBS = @X_LIBRARIES@
# Where to send email about bugs and comments (locally)
EMAIL = bug-gnuplot@dartmouth.edu
# Lasergnu is a handy shell script for creating a plot from the
# command line and sending it directly to the printer. It currently
# supports PostScript and imagen printers, and probably would need
# tailoring to your site.
# Use lasergnu_install to install lasergnu.
# Use lasergnu_noinstall to not install lasergnu (default).
LASERGNU = @LASERGNU@
############################################################
# -DREADLINE:
# If READLINE is defined, then command-line editing is supported.
# Otherwise, your normal terminal editing is all you get.
# Some machines will not support this, and they will turn this
# option off (for example, apollos running SR10.2 or SR10.3 and
# loaded with BSD4.3 instead of SYS5). Note: problems with
# gnuplot prompts have been noted when this feature is selected
# on IBM RS/6000 AIX, and compile errors are encountered on
# Sequent Dynix 3 and Convex OS 9.0.
# -DNOCWDRC:
# If NOCWDRC is defined, then any .gnuplot in the current directory
# is not read on startup. This is a security consideration
# especially for root users ( we recommend you define -DNOCWDRC ).
# -ISC22 to circumvent missing plots past the first on ISC 2.2
# -DNO_MEMSET if you don't have memset()
# -DHAVE_BZERO if you have bzero() instead and no memset().
# This works only if the second argument to memset() is 0!
# -DNO_MEMCPY if you don't have memcpy()
# -DHAVE_BCOPY if you have bcopy() instead and no memcpy()
# -DGAMMA=foo if your gamma function is called foo(). Apollos and
# Linux have lgamma(3m). The default is -DGAMMA=gamma.
# -DHAVE_GETCWD if your unix uses getcwd() instead of getwd()
# this is needed by HP-UX and Cray Unicos systems.
# -DULTRIX_KLUDGE if you run X windows on Ultrix and experience the
# "every other plot" problem.
# -DCRIPPLED_SELECT if "select errors" are encountered with X. This
# option is needed on SVR3 platforms with incomplete support for
# the BSD select() system call
# -DHAVE_LOCALE if your system uses the 'setlocale' function to
# support foreign charactersets (currently only ISO8859-1).
# -DSYSTEM_TIME to use the system-provided set of time routines -
# in case the gnuplot routines in time.c misbehave
# -Dunix is required to explicitly define "unix" for SCO and IBM
# RS/6000 running AIX 3.2
#
# You probably don't need to change anything below here.
#
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
ACLOCAL_AMFLAGS = -I m4
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
CONFIG_HEADER_IN = config.hin
CONFIG_HEADER = config.h
GZIP = --best
TAR = tar
####################################################################
#
# definitions for macros used in makefile.all (updated automatically)
O=o
T=$(srcdir)/term/
D=$(srcdir)/docs/
L=$(srcdir)/docs/latextut/
Q=$(srcdir)/docs/old/
S=$(srcdir)/docs/ps/
M=$(srcdir)/demo/
N=$(srcdir)/NeXT/
P=$(srcdir)/os2/
W=$(srcdir)/win/
#standard unix make does not support included makefiles.
#we inline the contents of makefile.all here
#it will be updated using a script whenever makefile.all is changed
#<<<makefile.all>>>
########################################################
#
# $Id: Makefile.in,v 1.38 1998/12/10 18:33:30 lhecking Exp $
#
########################################################
#
# Please note that this is NOT a standalone makefile
# it is intended to be merged into, or included by
# other makefiles once some macros have been defined
#
# If this segment appears in a makefile other than makefile.all,
# do not modify it in situ. This segment will be entirely
# replaced in all makefiles whenever makefile.all is updated
#
# If you are porting gnuplot to a new system, it would
# be very helpful if you could include this one in it.
# This reduces the amount of work required when files are
# added to the distribution
#
# note that there exists a file gnuplot.opt which lists all the
# core files (but without extension)
#
# please define
# O as the object extension
# T as the prefix for terminals (eg term/ or [.term])
# D as the prefix for docs (eg docs/)
# L as the prefix for latex tutorial (eg docs/latextut/ or [.docs.latextut])
# Q as the prefix for old doc files (eg docs/old)
# S as the prefix for postscript docs (eg docs/ps)
# M as the prefix for demos (eg demo/)
# N as the prefix for NeXT (eg NeXT/)
# P as the prefix for OS/2 (eg os2/)
# W as the prefix for Windows (eg win/)
####################################################################
# List of object files except version.$(O)
COREOBJS = alloc.$(O) binary.$(O) bitmap.$(O) command.$(O) contour.$(O)\
datafile.$(O) eval.$(O) fit.$(O) graphics.$(O) graph3d.$(O) help.$(O)\
hidden3d.$(O) internal.$(O) interpol.$(O) matrix.$(O) misc.$(O)\
parse.$(O) plot.$(O) plot2d.$(O) plot3d.$(O) readline.$(O)\
scanner.$(O) set.$(O) show.$(O) specfun.$(O) standard.$(O) stdfn.$(O)\
term.$(O) time.$(O) util.$(O) util3d.$(O)
####################################################################
# List of source files
# Used for making shar files, lint, and some dependencies.
CSOURCE = alloc.c binary.c bitmap.c command.c contour.c datafile.c eval.c \
fit.c graphics.c graph3d.c help.c hidden3d.c internal.c interpol.c \
matrix.c misc.c parse.c plot.c plot2d.c plot3d.c readline.c \
scanner.c set.c show.c specfun.c standard.c stdfn.c term.c time.c \
util.c util3d.c version.c
HEADERS = alloc.h ansichek.h binary.h bitmap.h fit.h fnproto.h help.h \
matrix.h national.h plot.h protos.h setshow.h stdfn.h syscfg.h term.h
CORETERM = $(T)aed.trm $(T)ai.trm $(T)amiga.trm $(T)apollo.trm \
$(T)atariaes.trm $(T)atarivdi.trm $(T)cgi.trm $(T)cgm.trm \
$(T)compact.c $(T)corel.trm $(T)debug.trm $(T)djsvga.trm \
$(T)driver.h $(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)impcodes.h $(T)iris4d.trm $(T)kyo.trm $(T)latex.trm \
$(T)linux.trm $(T)mac.trm $(T)metafont.trm $(T)mgr.trm \
$(T)mif.trm $(T)multitos.trm $(T)next.trm $(T)object.h \
$(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
CSOURCE8 = bf_test.c gplt_x11.c
NEXTSRC = $(N)Controller.h $(N)Controller.m $(N)GnuTerm.iconheader \
$(N)GnuTerm.tiff $(N)GnuTerm_main.m $(N)GnuView.h \
$(N)GnuView.m $(N)Makefile $(N)Makefile.postamble \
$(N)Makefile.preamble $(N)PB.gdbinit $(N)PB.project \
$(N)README.rtf $(N)bigger.tiff $(N)gnuviewController.h \
$(N)gnuviewController.m $(N)smaller.tiff \
$(N)English.lproj/GnuTerm.nib/data.classes \
$(N)English.lproj/GnuTerm.nib/data.nib \
$(N)English.lproj/gnuview.nib/bigger.tiff \
$(N)English.lproj/gnuview.nib/data.classes \
$(N)English.lproj/gnuview.nib/data.nib \
$(N)English.lproj/gnuview.nib/smaller.tiff
OS2SRC = $(P)dialogs.c $(P)dialogs.h $(P)gclient.c $(P)gnuplot.ico \
$(P)gnupmdrv.c $(P)gnupmdrv.def $(P)gnupmdrv.h $(P)gnupmdrv.ipf \
$(P)gnupmdrv.rc $(P)print.c
WINDOWS = $(W)geticon.c $(W)wcommon.h $(W)wgnupl32.def $(W)wgnuplib.c \
$(W)wgnuplib.def $(W)wgnuplib.h $(W)wgnuplib.rc $(W)wgnuplot.def \
$(W)wgnuplot.hpj $(W)wgnuplot.mnu $(W)wgnuplot.rc $(W)wgraph.c \
$(W)winmain.c $(W)wmenu.c $(W)wpause.c $(W)wprinter.c \
$(W)wresourc.h $(W)wtext.c $(W)wtext.h
# not C code, but still needed
DEMOS = $(M)1.dat $(M)2.dat $(M)3.dat $(M)airfoil.dem $(M)all.dem \
$(M)animate.dem $(M)battery.dat $(M)big_peak.dat $(M)binary.dem \
$(M)bivariat.dem $(M)borders.dem $(M)contours.dem $(M)controls.dem \
$(M)density.fnc $(M)discrete.dem $(M)electron.dem $(M)fit.dem \
$(M)glass.dat $(M)gnuplot.rot $(M)hemisphr.dat $(M)hexa.fnc \
$(M)hidden.dem $(M)klein.dat $(M)lcdemo.dat $(M)line.fnc \
$(M)mgr.dem $(M)moli3.dat $(M)multimsh.dem $(M)multiplt.dem \
$(M)param.dem $(M)polar.dem $(M)poldat.dem $(M)prob.dem \
$(M)prob2.dem $(M)random.dem $(M)reflect.fnc $(M)reread.bor \
$(M)scatter.dem $(M)scatter2.dat $(M)silver.dat $(M)simple.dem \
$(M)singulr.dem $(M)sound.par $(M)sound2.par $(M)soundvel.dat \
$(M)spline.dem $(M)start.par $(M)stat.inc $(M)steps.dat \
$(M)steps.dem $(M)surface1.dem $(M)surface2.dem $(M)timedat.dat \
$(M)timedat.dem $(M)using.dat $(M)using.dem $(M)vector.dem \
$(M)whale.dat $(M)world.cor $(M)world.dat $(M)world.dem
ETC = 0BUGS 0FAQ 0INSTALL 0PORTING 0README ChangeLog CodeStyle Copyright \
INSTALL.gnu Makefile.in NEWS TODO acconfig.h $(ACLOCAL_M4) amiga.c \
buildvms.com commitvers $(CONFIG_HEADER_IN) configure configure.in \
corgraph.asm corplot.c ctrl87.c ctrl87.h descrip.mms errorfix.sh \
genopt.com gnuplot.def gnuplot.el gnuplot.opt gnuplot.prj header.mac \
hrcgraph.asm install-sh intergra.x11 lasergnu lineproc.mac \
linkopt.vms linkopt.ztc make_vms.com makefile.286 makefile.all \
makefile.amg makefile.ami makefile.dj2 makefile.djg makefile.emx \
makefile.g makefile.mgw makefile.msc makefile.msw makefile.mto \
makefile.nt makefile.os2 makefile.os9 makefile.st makefile.tc \
makefile.unx makefile.vms makefile.wc makefile.win makefile.ztc \
missing mkinstalldirs os9.c pcgraph.asm rgipgnu stamp-h.in \
strftime.c vms.c m4/msdos.m4 m4/next.m4 m4/search-hdr.m4 \
m4/search-lib.m4 m4/select-types.m4 m4/stringize.m4 $(T)README
# Documentation and help files
DOCS1 = $(D)Makefile.in $(D)README $(D)checkdoc.c $(D)doc2gih.c \
$(D)doc2hlp.c $(D)doc2hlp.com $(D)doc2html.c $(D)doc2info.c \
$(D)doc2ipf.c $(D)doc2ms.c $(D)doc2rnh.c $(D)doc2rtf.c $(D)doc2tex.c \
$(D)doc2texi.pl $(D)doc2x.h $(D)gnuplot.1 $(D)lasergnu.1 \
$(D)makefile.dst $(D)makefile.ami $(D)termdoc.c $(D)titlepag.ms \
$(D)titlepag.tex $(D)toc_entr.sty $(D)xref.c $(D)xref.h
DOCS2 = $(D)gnuplot.doc $(D)gpcard.tex
DOCS3 = $(L)Makefile.in $(L)eg1.plt \
$(L)eg2.plt $(L)eg3.dat $(L)eg3.plt \
$(L)eg4.plt $(L)eg5.plt $(L)eg6.plt \
$(L)header.tex $(L)linepoin.plt $(L)makefile.dst $(L)tutorial.tex
DOCS4 = $(S)Makefile $(S)README $(S)ps_file.doc $(S)ps_guide.ps \
$(S)ps_symbols.gpi
DOCS5 = $(Q)ChangeLog.old $(Q)History.old $(Q)README.3d $(Q)README.3p1 \
$(Q)README.3p2 $(Q)README.3p3 $(Q)README.3p4 $(Q)README.3p5 \
$(Q)README.ami $(Q)README.emx $(Q)README.fit $(Q)README.gnu \
$(Q)README.iso $(Q)README.mf $(Q)README.nex $(Q)README.os2 \
$(Q)README.pic $(Q)README.pro $(Q)README.win $(Q)README.x11 \
$(Q)README.xli $(Q)makefile.r
DOCS = $(DOCS1) $(DOCS2) $(DOCS3) $(DOCS4) $(DOCS5)
#########################################################################
# Simple Dependencies
# - note that VMS requires space before and after the :
$(COREOBJS) : plot.h protos.h stdfn.h
help.$(O) misc.$(O) : help.h
protos.h : alloc.h
graphics.$(O) graph3d.$(O) misc.$(O) plot.$(O) set.$(O) show.$(O) term.$(O) : setshow.h
fit.$(O) : fit.c fit.h matrix.h plot.h
matrix.$(O) : matrix.c matrix.h fit.h
bitmap.$(O) term.$(O) : bitmap.h
term.$(O) : term.h $(CORETERM)
#>>>makefile.all<<<
####################################################
# (that's the end of makefile.all, by the way...)
# List of object files except version.o
OBJS = $(COREOBJS) @NEXTOBJS@
################################################################
install: all $(LASERGNU)
$(srcdir)/mkinstalldirs $(bindir)
$(srcdir)/mkinstalldirs $(datadir)
$(srcdir)/mkinstalldirs $(mandir)/man1
$(INSTALL_PROGRAM) gnuplot $(bindir)/gnuplot
test ! -f gnuplot_x11 || $(INSTALL_PROGRAM) gnuplot_x11 $(bindir)/gnuplot_x11
-$(INSTALL_DATA) $(srcdir)/docs/gnuplot.1 $(mandir)/man1/gnuplot.1
-cd docs && $(MAKE) $(MFLAGS) install
@LINUXSUID@
lasergnu_install: lasergnu docs/lasergnu.1
$(INSTALL_SCRIPT) $(srcdir)/lasergnu $(bindir)/lasergnu
$(INSTALL_DATA) $(srcdir)/docs/lasergnu.1 $(mandir)/man1/lasergnu.1
lasergnu_noinstall:
uninstall:
rm -f $(bindir)/gnuplot $(bindir)/gnuplot_x11
rm -f $(mandir)/man1/gnuplot.1 $(mandir)/man1/lasergnu.1
cd docs && $(MAKE) $(MFLAGS)
################################################################
# Dependencies
.c.o:
$(COMPILE) -c $<
gnuplot: $(OBJS) version.o
$(LINK) $(OBJS) version.o $(TERMLIBS) $(TERMXLIBS) $(LIBS)
gnuplot_x11: gplt_x11.o stdfn.o
$(LINK) gplt_x11.o stdfn.o $(XLIBS) $(LIBS)
doc:
cd docs && $(MAKE) $(MFLAGS) gnuplot.gih
demo/binary1 demo/binary2 demo/binary3: bf_test
wd=`pwd` && cd $(srcdir)/demo && $$wd/bf_test
bf_test: bf_test.o binary.o alloc.o
$(LINK) bf_test.o binary.o alloc.o $(LIBS)
errorfix: $(srcdir)/errorfix.sh
$(srcdir)/errorfix.sh $(srcdir)
touch errorfix
command.o: command.c fit.h help.h setshow.h
$(COMPILE) -DHELPFILE=\"$(HELPFILE)\" -c $<
show.o: show.c plot.h setshow.h
$(COMPILE) -DHELPFILE=\"$(HELPFILE)\" -DGNUPLOT_BINDIR=\"$(bindir)\" -c $<
term.o: term.c term.h $(CORETERM)
$(COMPILE) -I./term -I$(top_srcdir)/term -c $<
version.o: version.c
$(COMPILE) -DCONTACT=\"$(EMAIL)\" -c $<
$(COREOBJS) version.o bf_test.o : $(CONFIG_HEADER)
################################################################
# Autoconfig rules
#
# I have enabled these rules, because missing autoconf and
# automake tools are now detected by configure and dealt with.
# This rule is disabled because we have no Makefile.am
#$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
# cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
$(ACLOCAL_M4): configure.in m4/msdos.m4 m4/next.m4 m4/search-hdr.m4 \
m4/search-lib.m4 m4/select-types.m4 m4/stringize.m4
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck
$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
cd $(srcdir) && $(AUTOCONF)
$(CONFIG_HEADER): stamp-h
@:
stamp-h: $(srcdir)/$(CONFIG_HEADER_IN) $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES= CONFIG_HEADERS=$(CONFIG_HEADER)
$(SHELL) ./config.status
@echo timestamp > stamp-h
$(srcdir)/$(CONFIG_HEADER_IN): stamp-h.in
$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
cd $(top_srcdir) && $(AUTOHEADER)
@echo timestamp > $(srcdir)/stamp-h.in
################################################################
# Miscellaneous targets
SOURCES = $(HEADERS) $(CSOURCE) $(CSOURCE8) $(CORETERM) $(NEXTSRC) \
$(OS2SRC) $(WINDOWS)
DISTFILES = $(ETC) $(SOURCES) $(DEMOS) $(DOCS)
SUBDIRS = NeXT NeXT/English.lproj NeXT/English.lproj/GnuTerm.nib \
NeXT/English.lproj/gnuview.nib demo docs docs/latextut docs/old \
docs/ps m4 os2 term win
clean:
rm -f gnuplot gnuplot_x11 bf_test *.o core *~
rm -f gnuplot.exe gnuplot_x11.exe bf_test.exe
rm -f demo/binary? demo/temp.set demo/defaults.ini demo/fit.log \
demo/soundfit.par
cd docs && $(MAKE) $(MFLAGS) clean
mostlyclean: clean
distclean: clean
rm -f Makefile config.status config.cache $(CONFIG_HEADER) \
config.log stamp-h docs/Makefile docs/latextut/Makefile
test "$(srcdir)" = "$(top_builddir)" || rm -rf docs term
realclean: distclean
rm -f TAGS docs/TAGS
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
dist: distdir
-chmod -R a+r $(distdir)
$(TAR) chf - $(distdir) | gzip $(GZIP) > $(distdir).tar.gz
-rm -rf $(distdir)
distdir: $(DISTFILES)
-rm -rf $(distdir)
mkdir $(distdir)
-chmod u+rwx,go+rx $(distdir)
for subdir in $(SUBDIRS); do \
test -d $(distdir)/$$subdir \
|| mkdir $(distdir)/$$subdir \
|| exit 1; \
chmod u+rwx,go+rx $(distdir)/$$subdir; \
done
@for file in $(DISTFILES); do \
d=$(srcdir); \
test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file; \
done