Mercurial > hg > octave-nkf
annotate Makeconf.in @ 12121:87237a866c71 release-3-2-x
this branch is no longer maintained and is closed for further development
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 22 Jan 2011 01:00:54 -0500 |
parents | a691ccd72863 |
children | af86991d8d47 |
rev | line source |
---|---|
860 | 1 # @configure_input@ |
5 | 2 # |
3 # Common configuration rules for all of octave's Makefiles. | |
4 # | |
7017 | 5 # Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, |
8920 | 6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 John W. Eaton |
7017 | 7 # |
7016 | 8 # This file is part of Octave. |
9 # | |
10 # Octave is free software; you can redistribute it and/or modify it | |
11 # under the terms of the GNU General Public License as published by the | |
12 # Free Software Foundation; either version 3 of the License, or (at | |
13 # your option) any later version. | |
14 # | |
15 # Octave is distributed in the hope that it will be useful, but WITHOUT | |
16 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
17 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
18 # for more details. | |
19 # | |
20 # You should have received a copy of the GNU General Public License | |
21 # along with Octave; see the file COPYING. If not, see | |
22 # <http://www.gnu.org/licenses/>. | |
1450 | 23 |
5 | 24 SHELL = /bin/sh |
25 | |
4544 | 26 AWK = @AWK@ |
27 export AWK | |
28 | |
4084 | 29 SED = @SED@ |
4299 | 30 export SED |
4084 | 31 |
7244 | 32 FIND = @FIND@ |
33 export FIND | |
34 | |
5465 | 35 PERL = @PERL@ |
8444
c3ac9f2772cd
do not eat white space within @example environments of docstrings
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8417
diff
changeset
|
36 export PERL |
c3ac9f2772cd
do not eat white space within @example environments of docstrings
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8417
diff
changeset
|
37 |
5495 | 38 PYTHON = @PYTHON@ |
5465 | 39 |
7361 | 40 GNUPLOT = @GNUPLOT@ |
41 | |
5468 | 42 DESKTOP_FILE_INSTALL = @DESKTOP_FILE_INSTALL@ |
43 | |
3029 | 44 # A shell command to extract the version number from version.h. |
4449 | 45 getversion = $(SED) -e '/OCTAVE_VERSION/!d' -e 's/.*"\(.*\)".*$$/\1/' -e q |
46 | |
47 # A shell command to extract the API version number from version.h. | |
48 getapiversion = $(SED) -e '/OCTAVE_API_VERSION/!d' -e 's/.*"\(.*\)".*$$/\1/' -e q | |
3029 | 49 |
50 # Look for version.h to get version information. | |
51 xfiles := $(TOPDIR)/src/version.h $(srcdir)/$(TOPDIR)/src/version.h | |
52 version_file := $(firstword $(foreach file, $(xfiles), $(wildcard $(file)))) | |
53 version := $(shell $(getversion) $(version_file)) | |
5658 | 54 api_version := $(shell $(getapiversion) $(version_file)) |
3029 | 55 |
5 | 56 #### Start of system configuration section. #### |
57 | |
3892 | 58 EXEEXT = @EXEEXT@ |
2577 | 59 |
4098 | 60 BUILD_EXEEXT = @BUILD_EXEEXT@ |
61 | |
5 | 62 LEX = @LEX@ |
63 LFLAGS = @LFLAGS@ | |
64 LEXLIB = @LEXLIB@ | |
65 | |
66 YACC = @YACC@ | |
67 YFLAGS = -dv | |
68 | |
3675 | 69 GPERF = @GPERF@ |
70 | |
1462 | 71 AR = @AR@ |
72 ARFLAGS = @ARFLAGS@ | |
73 | |
3775 | 74 TEMPLATE_AR = @TEMPLATE_AR@ |
75 TEMPLATE_ARFLAGS = @TEMPLATE_ARFLAGS@ | |
76 | |
5 | 77 RANLIB = @RANLIB@ |
78 | |
1722 | 79 LN_S = @LN_S@ |
80 | |
5934 | 81 MAKEINFO = @MAKEINFO@ |
82 TEXI2DVI = @TEXI2DVI@ | |
83 TEXI2PDF = @TEXI2PDF@ | |
84 | |
85 GHOSTSCRIPT = @GHOSTSCRIPT@ | |
2518 | 86 |
5 | 87 DEFAULT_PAGER = @DEFAULT_PAGER@ |
88 | |
4128 | 89 ENABLE_DYNAMIC_LINKING = @ENABLE_DYNAMIC_LINKING@ |
702 | 90 |
3034 | 91 STATIC_LIBS = @STATIC_LIBS@ |
92 | |
1679 | 93 SHARED_LIBS = @SHARED_LIBS@ |
94 SHLEXT = @SHLEXT@ | |
4126 | 95 SHLEXT_VER = @SHLEXT_VER@ |
4102 | 96 SHLLIB = @SHLLIB@ |
4627 | 97 SHLLIB_VER = @SHLLIB_VER@ |
4102 | 98 SHLBIN = @SHLBIN@ |
4126 | 99 SHLBIN_VER = @SHLBIN_VER@ |
100 SHLLINKEXT= | |
4102 | 101 |
3029 | 102 LIBEXT = a |
6051 | 103 LIBPRE = @LIBPRE@ |
9186
49a0c58a7dcf
Added SHLPRE for SHLEXT instead of SHLLIBPRE
marco_atzeri@yahoo.it
parents:
9078
diff
changeset
|
104 SHLPRE = @SHLPRE@ |
9189
8a348e4be8bb
repair damage done when applying changeset 49a0c58a7dcf
John W. Eaton <jwe@octave.org>
parents:
9187
diff
changeset
|
105 SHLLIBPRE = @SHLLIBPRE@ |
8618
f8b3ece45bda
use separate prefix for shllib and shlbin files
John W. Eaton <jwe@octave.org>
parents:
8560
diff
changeset
|
106 SHLBINPRE = @SHLBINPRE@ |
1667 | 107 |
5 | 108 # Fortran compiler flags. |
109 | |
1163 | 110 FC = @FC@ |
798 | 111 F77 = @F77@ |
5 | 112 FFLAGS = @FFLAGS@ |
1832 | 113 FPICFLAG = @FPICFLAG@ |
2610 | 114 ALL_FFLAGS = $(FFLAGS) |
5498 | 115 F77_FLOAT_STORE_FLAG = @F77_FLOAT_STORE_FLAG@ |
5 | 116 |
6102 | 117 F77_TOLOWER=@F77_TOLOWER@ |
118 F77_APPEND_UNDERSCORE=@F77_TOLOWER@ | |
119 F77_APPEND_EXTRA_UNDERSCORE=@F77_TOLOWER@ | |
120 | |
5 | 121 # cc and associated flags. |
122 | |
236 | 123 # Clean up INCFLAGS a bit if we are not compiling in a separate |
124 # directory. | |
125 ifeq ($(srcdir),.) | |
2546 | 126 TMP_IF_1 = -I. |
236 | 127 else |
2546 | 128 TMP_IF_1 = -I. -I$(srcdir) |
236 | 129 endif |
404 | 130 ifeq ($(TOPDIR),$(top_srcdir)) |
5164 | 131 TMP_IF_2 = \ |
132 -I$(TOPDIR) \ | |
133 -I$(TOPDIR)/liboctave \ | |
134 -I$(TOPDIR)/src \ | |
135 -I$(TOPDIR)/libcruft/misc | |
236 | 136 else |
5164 | 137 TMP_IF_2 = \ |
138 -I$(TOPDIR) \ | |
139 -I$(TOPDIR)/liboctave \ | |
140 -I$(TOPDIR)/src \ | |
141 -I$(TOPDIR)/libcruft/misc \ | |
142 -I$(top_srcdir) \ | |
143 -I$(top_srcdir)/liboctave \ | |
144 -I$(top_srcdir)/src \ | |
145 -I$(top_srcdir)/libcruft/misc | |
236 | 146 endif |
7253 | 147 INCFLAGS = $(TMP_IF_1) $(TMP_IF_2) |
236 | 148 |
8560
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8547
diff
changeset
|
149 X11_INCFLAGS = @X11_INCFLAGS@ |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8547
diff
changeset
|
150 X11_LIBS = @X11_LIBS@ |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8547
diff
changeset
|
151 |
8771
d3382daaf4d2
Use CARBON_LIBS instead of LIBS for framework Carbon.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8719
diff
changeset
|
152 CARBON_LIBS = @CARBON_LIBS@ |
d3382daaf4d2
Use CARBON_LIBS instead of LIBS for framework Carbon.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8719
diff
changeset
|
153 |
7926
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
154 MAGICK_CONFIG = @MAGICK_CONFIG@ |
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
155 MAGICK_INCFLAGS = $(shell $(MAGICK_CONFIG) --cppflags) |
12042
4cd9c36b705e
Makeconf.in (MAGICK_LIBS): Don't pass --ldflags to $(MAGICK_CONFIG)
John W. Eaton <jwe@octave.org>
parents:
9189
diff
changeset
|
156 MAGICK_LIBS = $(shell $(MAGICK_CONFIG) --libs) |
7926
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
157 |
12115
a691ccd72863
add configure checks for pthread library and compiler flags
John W. Eaton <jwe@octave.org>
parents:
12042
diff
changeset
|
158 PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ |
a691ccd72863
add configure checks for pthread library and compiler flags
John W. Eaton <jwe@octave.org>
parents:
12042
diff
changeset
|
159 PTHREAD_LIBS = @PTHREAD_LIBS@ |
a691ccd72863
add configure checks for pthread library and compiler flags
John W. Eaton <jwe@octave.org>
parents:
12042
diff
changeset
|
160 |
5 | 161 LIBFLAGS = -L$(TOPDIR) |
236 | 162 |
5 | 163 DEFS = @DEFS@ |
164 | |
2032 | 165 UGLY_DEFS = @UGLY_DEFS@ |
166 | |
5 | 167 CC = @CC@ |
1891 | 168 CC_VERSION = @CC_VERSION@ |
5 | 169 CFLAGS = @CFLAGS@ |
1832 | 170 CPICFLAG = @CPICFLAG@ |
3126 | 171 XTRA_CFLAGS = @XTRA_CFLAGS@ |
4626 | 172 WARN_CFLAGS = @WARN_CFLAGS@ |
12115
a691ccd72863
add configure checks for pthread library and compiler flags
John W. Eaton <jwe@octave.org>
parents:
12042
diff
changeset
|
173 ALL_CFLAGS = $(INCFLAGS) $(DLL_CDEFS) $(DEFS) $(XTRA_CFLAGS) $(WARN_CFLAGS) $(CFLAGS) $(PTHREAD_CFLAGS) |
4626 | 174 BUG_CFLAGS = $(DEFS) $(XTRA_CFLAGS) $(WARN_CFLAGS) $(CFLAGS) |
798 | 175 |
4094 | 176 BUILD_CC = @BUILD_CC@ |
177 BUILD_CFLAGS = @BUILD_CFLAGS@ | |
4093 | 178 |
3775 | 179 DEPEND_FLAGS = @DEPEND_FLAGS@ |
180 DEPEND_EXTRA_SED_PATTERN = @DEPEND_EXTRA_SED_PATTERN@ | |
6087 | 181 INCLUDE_DEPS = @INCLUDE_DEPS@ |
182 ifeq ($(INCLUDE_DEPS),false) | |
183 omit_deps = true; | |
184 endif | |
3775 | 185 |
7914
e998e81224b5
Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents:
7874
diff
changeset
|
186 GRAPHICS_CFLAGS = @GRAPHICS_CFLAGS@ |
e998e81224b5
Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents:
7874
diff
changeset
|
187 |
198 | 188 CXX = @CXX@ |
1891 | 189 CXX_VERSION = @CXX_VERSION@ |
518 | 190 CXXCPP = @CXXCPP@ |
198 | 191 CXXFLAGS = @CXXFLAGS@ |
1832 | 192 CXXPICFLAG = @CXXPICFLAG@ |
3126 | 193 XTRA_CXXFLAGS = @XTRA_CXXFLAGS@ |
4626 | 194 WARN_CXXFLAGS = @WARN_CXXFLAGS@ |
195 ALL_CXXFLAGS = \ | |
12115
a691ccd72863
add configure checks for pthread library and compiler flags
John W. Eaton <jwe@octave.org>
parents:
12042
diff
changeset
|
196 $(INCFLAGS) $(DLL_CXXDEFS) $(DEFS) $(XTRA_CXXFLAGS) $(WARN_CXXFLAGS) $(CXXFLAGS) $(PTHREAD_CFLAGS) |
4626 | 197 BUG_CXXFLAGS = $(DEFS) $(XTRA_CXXFLAGS) $(WARN_CXXFLAGS) $(CXXFLAGS) |
5 | 198 |
4094 | 199 BUILD_CXX = @BUILD_CXX@ |
200 BUILD_CXXFLAGS = @BUILD_CXXFLAGS@ | |
4093 | 201 |
858 | 202 CPPFLAGS = @CPPFLAGS@ |
203 | |
3705 | 204 LD_CXX = @LD_CXX@ |
5 | 205 LDFLAGS = @LDFLAGS@ |
708 | 206 LD_STATIC_FLAG = @LD_STATIC_FLAG@ |
3887 | 207 ALL_LDFLAGS = $(LIBFLAGS) $(LD_STATIC_FLAG) $(CPICFLAG) $(LDFLAGS) |
5 | 208 |
4298 | 209 BUILD_LDFLAGS = @BUILD_LDFLAGS@ |
210 | |
2676 | 211 SH_LD = @SH_LD@ |
212 SH_LDFLAGS = @SH_LDFLAGS@ | |
213 | |
4759 | 214 DL_LD = @DL_LD@ |
215 DL_LDFLAGS = @DL_LDFLAGS@ | |
216 | |
3036 | 217 SONAME_FLAGS = @SONAME_FLAGS@ |
218 | |
3233 | 219 RDYNAMIC_FLAG = @RDYNAMIC_FLAG@ |
220 | |
2674 | 221 RLD_FLAG = @RLD_FLAG@ |
222 | |
5 | 223 FLIBS = @FLIBS@ |
708 | 224 |
5451 | 225 LIBGLOB = @LIBGLOB@ |
3156 | 226 LIBOCTINTERP = @LIBOCTINTERP@ |
227 LIBOCTAVE = @LIBOCTAVE@ | |
228 LIBCRUFT = @LIBCRUFT@ | |
4102 | 229 LIBREADLINE = @LIBREADLINE@ |
230 TERMLIBS = @TERMLIBS@ | |
3726 | 231 |
7874
e3a502930e2a
eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents:
7825
diff
changeset
|
232 FT2_LIBS = @FT2_LIBS@ |
e3a502930e2a
eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents:
7825
diff
changeset
|
233 GRAPHICS_LIBS = @GRAPHICS_LIBS@ |
6823 | 234 QHULL_LIBS = @QHULL_LIBS@ |
5585 | 235 REGEX_LIBS = @REGEX_LIBS@ |
3726 | 236 BLAS_LIBS = @BLAS_LIBS@ |
3827 | 237 FFTW_LIBS = @FFTW_LIBS@ |
5235 | 238 GLPK_LIBS = @GLPK_LIBS@ |
6043 | 239 CURL_LIBS = @CURL_LIBS@ |
5451 | 240 AMD_LIBS = @AMD_LIBS@ |
6024 | 241 CAMD_LIBS = @CAMD_LIBS@ |
5270 | 242 UMFPACK_LIBS = @UMFPACK_LIBS@ |
5451 | 243 COLAMD_LIBS = @COLAMD_LIBS@ |
244 CCOLAMD_LIBS = @CCOLAMD_LIBS@ | |
245 CHOLMOD_LIBS = @CHOLMOD_LIBS@ | |
5610 | 246 CXSPARSE_LIBS = @CXSPARSE_LIBS@ |
7825
13871b7de124
Import sources for OpenGL-based renderer.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
7698
diff
changeset
|
247 OPENGL_LIBS = @OPENGL_LIBS@ |
8547
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8444
diff
changeset
|
248 QRUPDATE_LIBS = @QRUPDATE_LIBS@ |
8417
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8005
diff
changeset
|
249 ARPACK_LIBS = @ARPACK_LIBS@ |
3726 | 250 LIBS = @LIBS@ |
5 | 251 |
5275 | 252 USE_64_BIT_IDX_T = @USE_64_BIT_IDX_T@ |
253 | |
5708 | 254 TEXINFO_COLAMD = @TEXINFO_COLAMD@ |
255 TEXINFO_CHOLMOD = @TEXINFO_CHOLMOD@ | |
256 TEXINFO_UMFPACK = @TEXINFO_UMFPACK@ | |
6855 | 257 TEXINFO_QHULL = @TEXINFO_QHULL@ |
5708 | 258 |
2155 | 259 # The arguments passed to configure. |
2156 | 260 config_opts = @config_opts@ |
2155 | 261 |
8850
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8772
diff
changeset
|
262 CONFIG_SUBDIRS = @subdirs@ |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8772
diff
changeset
|
263 |
666 | 264 # ==================== Where To Install Things ==================== |
5 | 265 |
666 | 266 # The default location for installation. Everything is placed in |
267 # subdirectories of this directory. The default values for many of | |
268 # the variables below are expressed in terms of this one, so you may | |
269 # not need to change them. This defaults to /usr/local. | |
270 prefix = @prefix@ | |
5 | 271 |
666 | 272 # Like `prefix', but used for architecture-specific files. |
273 exec_prefix = @exec_prefix@ | |
274 | |
275 # Where to install Octave and other binaries that people will want to | |
276 # run directly. | |
277 bindir = @bindir@ | |
5 | 278 |
4411 | 279 # Normally the directory for installing executables that system |
280 # administrators run. This is the same as libexecdir on Cygwin systems. | |
281 sbindir = @sbindir@ | |
282 | |
5844 | 283 # The root of the directory tree for read-only |
284 # architecture-independent data files. | |
285 datarootdir = @datarootdir@ | |
286 | |
666 | 287 # Where to install architecture-independent data files. ${fcnfiledir} |
288 # and ${localfcnfiledir} are subdirectories of this. | |
289 datadir = @datadir@ | |
5 | 290 |
3141 | 291 libdir = @libdir@ |
292 | |
8940
6994961bf1f4
use doc-cache instead of DOC for doc cache file name
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
293 # Where to install and expect extra files like NEWS and doc-cache. |
8719
679c270b7584
install DOC and NEWS in $octetcdir
John W. Eaton <jwe@octave.org>
parents:
8618
diff
changeset
|
294 octetcdir = @octetcdir@ |
679c270b7584
install DOC and NEWS in $octetcdir
John W. Eaton <jwe@octave.org>
parents:
8618
diff
changeset
|
295 |
666 | 296 # Where to install and expect libraries like libcruft.a, liboctave.a, |
3141 | 297 # and other architecture-dependent data. |
298 octlibdir = @octlibdir@ | |
5 | 299 |
1720 | 300 # Where to install and expect executable programs to be run by Octave |
301 # rather than directly by users. | |
302 libexecdir = @libexecdir@ | |
303 | |
2141 | 304 # The prefix for Octave's include file directory. The default is |
305 # ${prefix}/include | |
2223 | 306 includedir = @includedir@ |
2141 | 307 |
666 | 308 # Where to install Octave's man pages, and what extension they should |
309 # have. The default is ${prefix}/man/man1 | |
310 mandir = @mandir@ | |
2223 | 311 man1dir = @man1dir@ |
312 man1ext = @man1ext@ | |
5 | 313 |
8865
eace5649a8b5
set default value for doc_cache_file variable
John W. Eaton <jwe@octave.org>
parents:
8850
diff
changeset
|
314 # The full path to the default doc cache file. |
eace5649a8b5
set default value for doc_cache_file variable
John W. Eaton <jwe@octave.org>
parents:
8850
diff
changeset
|
315 doc_cache_file = @doc_cache_file@ |
eace5649a8b5
set default value for doc_cache_file variable
John W. Eaton <jwe@octave.org>
parents:
8850
diff
changeset
|
316 |
666 | 317 # Where to install and expect the info files describing Octave.. |
318 infodir = @infodir@ | |
319 | |
8865
eace5649a8b5
set default value for doc_cache_file variable
John W. Eaton <jwe@octave.org>
parents:
8850
diff
changeset
|
320 # The full path to the default info file. |
2512 | 321 infofile = @infofile@ |
322 | |
666 | 323 # ==================== Octave-specific directories ==================== |
324 | |
2993 | 325 # These variables hold the values specific to Octave. They are |
666 | 326 # based on the values of the standard Make variables above. |
327 | |
5451 | 328 # What is the path separation character |
329 sepchar = @sepchar@ | |
330 | |
3597 | 331 # Where to install Octave's include files (they will actually be |
332 # installed in a subdirectory called octave). The default is | |
2993 | 333 # ${includedir}/octave-${version} |
334 octincludedir = @octincludedir@ | |
335 | |
666 | 336 # Where to install the function file distributed with |
337 # Octave. This includes the Octave version, so that the | |
338 # function files for different versions of Octave will install | |
339 # themselves in separate directories. | |
340 fcnfiledir = @fcnfiledir@ | |
341 | |
342 # Directories Octave should search for function files specific | |
343 # to this site (i.e. customizations), before consulting | |
344 # ${fcnfiledir}. This should be a colon-separated list of | |
345 # directories. | |
827 | 346 localfcnfiledir = @localfcnfiledir@ |
4449 | 347 localapifcnfiledir = @localapifcnfiledir@ |
3597 | 348 localverfcnfiledir = @localverfcnfiledir@ |
5 | 349 |
666 | 350 # Where to put executables to be run by Octave rather than |
351 # the user. This path usually includes the Octave version | |
352 # and configuration name, so that multiple configurations | |
353 # for multiple versions of Octave may be installed at once. | |
354 archlibdir = @archlibdir@ | |
355 | |
2439 | 356 # Where to put executables to be run by Octave rather than by the |
357 # user that are specific to this site. | |
358 localarchlibdir = @localarchlibdir@ | |
5909 | 359 localapiarchlibdir = @localapiarchlibdir@ |
3597 | 360 localverarchlibdir = @localverarchlibdir@ |
2439 | 361 |
666 | 362 # Where to put object files that will by dynamically loaded. |
363 # This path usually includes the Octave version and configuration | |
364 # name, so that multiple configurations for multiple versions of | |
365 # Octave may be installed at once. | |
366 octfiledir = @octfiledir@ | |
5 | 367 |
666 | 368 # Directories Octave should search for object files that will be |
369 # dynamically loaded and that are specific to this site | |
370 # (i.e. customizations), before consulting ${octfiledir}. This should | |
371 # be a colon-separated list of directories. | |
827 | 372 localoctfiledir = @localoctfiledir@ |
4449 | 373 localapioctfiledir = @localapioctfiledir@ |
3597 | 374 localveroctfiledir = @localveroctfiledir@ |
666 | 375 |
5814 | 376 # Where Octave will search to find image files. |
827 | 377 imagedir = @imagedir@ |
685 | 378 |
5 | 379 # The type of computer we are running on. |
3136 | 380 canonical_host_type = @canonical_host_type@ |
5 | 381 |
4443 | 382 # Where Octave will look for startup files |
383 startupfiledir = ${fcnfiledir}/startup | |
384 localstartupfiledir = ${localfcnfiledir}/startup | |
385 | |
6028 | 386 # LD_LIBRARY_PATH, DYLD_LIBRARY_PATH, PATH, ... |
387 library_path_var = @library_path_var@ | |
388 | |
4199 | 389 NO_OCT_FILE_STRIP = @NO_OCT_FILE_STRIP@ |
390 | |
5 | 391 # The following pattern rules and the substitution functions require |
392 # GNU make. If you don't have it, get it! | |
393 | |
7063 | 394 # How to make .o files: |
5 | 395 |
7063 | 396 %.o : %.f |
397 $(FC) -c $(ALL_FFLAGS) -o $@ $< | |
5 | 398 |
1984 | 399 %.o : %.c |
3615 | 400 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< -o $@ |
5 | 401 |
1984 | 402 %.o : %.cc |
3615 | 403 $(CXX) -c $(CPPFLAGS) $(ALL_CXXFLAGS) $< -o $@ |
308 | 404 |
7063 | 405 pic/%.o : %.f |
406 $(FC) -c $(FPICFLAG) $(ALL_FFLAGS) $< -o $@ | |
407 | |
1984 | 408 pic/%.o : %.c |
409 $(CC) -c $(CPPFLAGS) $(CPICFLAG) $(ALL_CFLAGS) $< -o $@ | |
410 | |
411 pic/%.o : %.cc | |
412 $(CXX) -c $(CPPFLAGS) $(CXXPICFLAG) $(ALL_CXXFLAGS) $< -o $@ | |
413 | |
308 | 414 # Here is a rule for generating dependencies for .cc files: |
415 | |
1984 | 416 %.d : %.cc |
518 | 417 @echo making $@ from $< |
418 @rm -f $@ | |
3775 | 419 @$(CXX) $(DEPEND_FLAGS) $(CPPFLAGS) $(ALL_CXXFLAGS) $< | \ |
4084 | 420 $(SED) \ |
3775 | 421 $(DEPEND_EXTRA_SED_PATTERN) \ |
422 -e 's,^[^:]*/\(.*\.o\):,\1:,' \ | |
4050 | 423 -e 's,$*\.o,pic/& & $*.df $@,g' > $@-t |
4014 | 424 @mv $@-t $@ |
308 | 425 |
426 # And one for .c files.too: | |
427 | |
1984 | 428 %.d : %.c |
518 | 429 @echo making $@ from $< |
430 @rm -f $@ | |
3775 | 431 @$(CC) $(DEPEND_FLAGS) $(CPPFLAGS) $(ALL_CFLAGS) $< | \ |
4084 | 432 $(SED) \ |
3775 | 433 $(DEPEND_EXTRA_SED_PATTERN) \ |
434 -e 's,^[^:]*/\(.*\.o\):,\1:,' \ | |
4014 | 435 -e 's,$*\.o,pic/& & $@,g' > $@-t |
436 @mv $@-t $@ | |
1166 | 437 |
1685 | 438 define do-subdir-for-command |
4414 | 439 echo making $@ in $d; $(MAKE) -C $d $@; |
1166 | 440 endef |
1685 | 441 |
442 define subdir-for-command | |
443 $(foreach d, $(SUBDIRS), $(do-subdir-for-command)) | |
444 endef | |
2157 | 445 |
6152 | 446 define simple-move-if-change-rule |
447 if [ -s $@-t ]; then \ | |
448 $(top_srcdir)/move-if-change $@-t $@; \ | |
449 else \ | |
450 echo "$@-t is empty!" 1>&2; \ | |
451 rm -f $@-t; \ | |
452 exit 1; \ | |
453 fi | |
454 endef | |
455 | |
456 define builddir-move-if-change-rule | |
457 if [ -s $(@F)-t ]; then \ | |
458 $(top_srcdir)/move-if-change $(@F)-t $(@F); \ | |
459 else \ | |
460 echo "$(@F)-t is empty!" 1>&2; \ | |
461 rm -f $(@F)-t; \ | |
462 exit 1; \ | |
463 fi | |
464 endef | |
465 | |
2862 | 466 # Yes, the second sed command near the end is needed, to avoid limits |
467 # in command lengths for some versions of sed. UGLY_DEFS is often | |
468 # quite large, so it makes sense to split this command there. | |
469 | |
2157 | 470 define do-subst-config-vals |
2223 | 471 echo "making $@ from $<" |
4084 | 472 $(SED) < $< \ |
5451 | 473 -e "s|%NO_OCT_FILE_STRIP%|${NO_OCT_FILE_STRIP}|" \ |
474 -e "s|%OCTAVE_BINDIR%|\"${bindir}\"|" \ | |
475 -e "s|%OCTAVE_CONF_ALL_CFLAGS%|\"${ALL_CFLAGS}\"|" \ | |
476 -e "s|%OCTAVE_CONF_ALL_CXXFLAGS%|\"${ALL_CXXFLAGS}\"|" \ | |
477 -e "s|%OCTAVE_CONF_ALL_FFLAGS%|\"${ALL_FFLAGS}\"|" \ | |
478 -e "s|%OCTAVE_CONF_ALL_LDFLAGS%|\"${ALL_LDFLAGS}\"|" \ | |
479 -e "s|%OCTAVE_CONF_AR%|\"${AR}\"|" \ | |
480 -e "s|%OCTAVE_CONF_ARFLAGS%|\"${ARFLAGS}\"|" \ | |
481 -e "s|%OCTAVE_CONF_BLAS_LIBS%|\"${BLAS_LIBS}\"|" \ | |
482 -e "s|%OCTAVE_CONF_CANONICAL_HOST_TYPE%|\"${canonical_host_type}\"|" \ | |
8772
aeedc045cfe3
toplev.cc (Foctave_config_info): add CARBON_LIBS, X11_INCFLAGS, and X11_LIBS to the struct
John W. Eaton <jwe@octave.org>
parents:
8771
diff
changeset
|
483 -e "s|%OCTAVE_CONF_CARBON_LIBS%|\"${CARBON_LIBS}\"|" \ |
5451 | 484 -e "s|%OCTAVE_CONF_CC%|\"${CC}\"|" \ |
485 -e "s|%OCTAVE_CONF_CC_VERSION%|\"${CC_VERSION}\"|" \ | |
486 -e "s|%OCTAVE_CONF_CFLAGS%|\"${CFLAGS}\"|" \ | |
487 -e "s|%OCTAVE_CONF_CPICFLAG%|\"${CPICFLAG}\"|" \ | |
488 -e "s|%OCTAVE_CONF_CPPFLAGS%|\"${CPPFLAGS}\"|" \ | |
6043 | 489 -e "s|%OCTAVE_CONF_CURL_LIBS%|\"${CURL_LIBS}\"|" \ |
5451 | 490 -e "s|%OCTAVE_CONF_CXX%|\"${CXX}\"|" \ |
491 -e "s|%OCTAVE_CONF_CXXCPP%|\"${CXXCPP}\"|" \ | |
492 -e "s|%OCTAVE_CONF_CXXFLAGS%|\"${CXXFLAGS}\"|" \ | |
493 -e "s|%OCTAVE_CONF_CXXPICFLAG%|\"${CXXPICFLAG}\"|" \ | |
494 -e "s|%OCTAVE_CONF_CXX_VERSION%|\"${CXX_VERSION}\"|" \ | |
495 -e "s|%OCTAVE_CONF_DEFAULT_PAGER%|\"${DEFAULT_PAGER}\"|" \ | |
496 -e "s|%OCTAVE_CONF_DEPEND_FLAGS%|\"${DEPEND_FLAGS}\"|" \ | |
497 -e "s|%OCTAVE_CONF_DEPEND_EXTRA_SED_PATTERN%|\"${DEPEND_EXTRA_SED_PATTERN}\"|" \ | |
498 -e "s|%OCTAVE_CONF_DL_LD%|\"${DL_LD}\"|" \ | |
499 -e "s|%OCTAVE_CONF_DL_LDFLAGS%|\"${DL_LDFLAGS}\"|" \ | |
500 -e "s|%OCTAVE_CONF_EXEEXT%|\"${EXEEXT}\"|" \ | |
501 -e "s|%OCTAVE_CONF_F77%|\"${F77}\"|" \ | |
5498 | 502 -e "s|%OCTAVE_CONF_F77_FLOAT_STORE_FLAG%|\"${F77_FLOAT_STORE_FLAG}\"|" \ |
5451 | 503 -e "s|%OCTAVE_CONF_FC%|\"${FC}\"|" \ |
504 -e "s|%OCTAVE_CONF_FFLAGS%|\"${FFLAGS}\"|" \ | |
505 -e "s|%OCTAVE_CONF_FFTW_LIBS%|\"${FFTW_LIBS}\"|" \ | |
506 -e "s|%OCTAVE_CONF_FLIBS%|\"${FLIBS}\"|" \ | |
507 -e "s|%OCTAVE_CONF_FPICFLAG%|\"${FPICFLAG}\"|" \ | |
508 -e "s|%OCTAVE_CONF_GLPK_LIBS%|\"${GLPK_LIBS}\"|" \ | |
7361 | 509 -e "s|%OCTAVE_CONF_GNUPLOT%|\"${GNUPLOT}\"|" \ |
5451 | 510 -e "s|%OCTAVE_CONF_INCFLAGS%|\"${INCFLAGS}\"|" \ |
6311 | 511 -e "s|%OCTAVE_CONF_INCLUDEDIR%|\"${includedir}\"|" \ |
5451 | 512 -e "s|%OCTAVE_CONF_LD_CXX%|\"${LD_CXX}\"|" \ |
513 -e "s|%OCTAVE_CONF_LDFLAGS%|\"${LDFLAGS}\"|" \ | |
514 -e "s|%OCTAVE_CONF_LD_STATIC_FLAG%|\"${LD_STATIC_FLAG}\"|" \ | |
515 -e "s|%OCTAVE_CONF_LEX%|\"${LEX}\"|" \ | |
516 -e "s|%OCTAVE_CONF_LEXLIB%|\"${LEXLIB}\"|" \ | |
517 -e "s|%OCTAVE_CONF_LFLAGS%|\"${LFLAGS}\"|" \ | |
518 -e "s|%OCTAVE_CONF_LIBCRUFT%|\"${LIBCRUFT}\"|" \ | |
6710 | 519 -e "s|%OCTAVE_CONF_LIBDIR%|\"${libdir}\"|" \ |
5451 | 520 -e "s|%OCTAVE_CONF_LIBEXT%|\"${LIBEXT}\"|" \ |
521 -e "s|%OCTAVE_CONF_LIBFLAGS%|\"${LIBFLAGS}\"|" \ | |
522 -e "s|%OCTAVE_CONF_LIBGLOB%|\"${LIBGLOB}\"|" \ | |
523 -e "s|%OCTAVE_CONF_LIBOCTAVE%|\"${LIBOCTAVE}\"|" \ | |
524 -e "s|%OCTAVE_CONF_LIBOCTINTERP%|\"${LIBOCTINTERP}\"|" \ | |
525 -e "s|%OCTAVE_CONF_LIBREADLINE%|\"${LIBREADLINE}\"|" \ | |
526 -e "s|%OCTAVE_CONF_LIBS%|\"${LIBS}\"|" \ | |
527 -e "s|%OCTAVE_CONF_LN_S%|\"${LN_S}\"|" \ | |
7926
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
528 -e "s|%OCTAVE_CONF_MAGICK_INCFLAGS%|\"${MAGICK_INCFLAGS}\"|" \ |
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
529 -e "s|%OCTAVE_CONF_MAGICK_LIBS%|\"${MAGICK_LIBS}\"|" \ |
6682 | 530 -e 's|%OCTAVE_CONF_MKOCTFILE_DL_LDFLAGS%|\"@MKOCTFILE_DL_LDFLAGS@\"|' \ |
6311 | 531 -e "s|%OCTAVE_CONF_OCTINCLUDEDIR%|\"${octincludedir}\"|" \ |
532 -e "s|%OCTAVE_CONF_OCTLIBDIR%|\"${octlibdir}\"|" \ | |
533 -e "s|%OCTAVE_CONF_PREFIX%|\"${prefix}\"|" \ | |
5451 | 534 -e "s|%OCTAVE_CONF_RANLIB%|\"${RANLIB}\"|" \ |
535 -e "s|%OCTAVE_CONF_RDYNAMIC_FLAG%|\"${RDYNAMIC_FLAG}\"|" \ | |
536 -e "s|%OCTAVE_CONF_RLD_FLAG%|\"${RLD_FLAG}\"|" \ | |
537 -e "s|%OCTAVE_CONF_SED%|\"${SED}\"|" \ | |
538 -e "s|%OCTAVE_CONF_SHARED_LIBS%|\"${SHARED_LIBS}\"|" \ | |
539 -e "s|%OCTAVE_CONF_SHLEXT%|\"${SHLEXT}\"|" \ | |
540 -e "s|%OCTAVE_CONF_SHLLINKEXT%|\"${SHLLINKEXT}\"|" \ | |
541 -e "s|%OCTAVE_CONF_SHLEXT_VER%|\"${SHLEXT_VER}\"|" \ | |
542 -e "s|%OCTAVE_CONF_SH_LD%|\"${SH_LD}\"|" \ | |
543 -e "s|%OCTAVE_CONF_SH_LDFLAGS%|\"${SH_LDFLAGS}\"|" \ | |
544 -e "s|%OCTAVE_CONF_SONAME_FLAGS%|\"${SONAME_FLAGS}\"|" \ | |
545 -e "s|%OCTAVE_CONF_STATIC_LIBS%|\"${STATIC_LIBS}\"|" \ | |
546 -e "s|%OCTAVE_CONF_UGLY_DEFS%|\"${UGLY_DEFS}\"|" \ | |
547 -e "s|%OCTAVE_CONF_USE_64_BIT_IDX_T%|\"${USE_64_BIT_IDX_T}\"|" \ | |
548 -e "s|%OCTAVE_CONF_VERSION%|\"${version}\"|" \ | |
549 -e "s|%OCTAVE_CONF_ENABLE_DYNAMIC_LINKING%|\"${ENABLE_DYNAMIC_LINKING}\"|" \ | |
8772
aeedc045cfe3
toplev.cc (Foctave_config_info): add CARBON_LIBS, X11_INCFLAGS, and X11_LIBS to the struct
John W. Eaton <jwe@octave.org>
parents:
8771
diff
changeset
|
550 -e "s|%OCTAVE_CONF_X11_INCFLAGS%|\"${X11_INCFLAGS}\"|" \ |
aeedc045cfe3
toplev.cc (Foctave_config_info): add CARBON_LIBS, X11_INCFLAGS, and X11_LIBS to the struct
John W. Eaton <jwe@octave.org>
parents:
8771
diff
changeset
|
551 -e "s|%OCTAVE_CONF_X11_LIBS%|\"${X11_LIBS}\"|" \ |
5451 | 552 -e "s|%OCTAVE_CONF_XTRA_CFLAGS%|\"${XTRA_CFLAGS}\"|" \ |
553 -e "s|%OCTAVE_CONF_XTRA_CXXFLAGS%|\"${XTRA_CXXFLAGS}\"|" \ | |
554 -e "s|%OCTAVE_CONF_YACC%|\"${YACC}\"|" \ | |
555 -e "s|%OCTAVE_CONF_YFLAGS%|\"${YFLAGS}\"|" \ | |
556 -e "s|%OCTAVE_CONF_config_opts%|\"${config_opts}\"|" | \ | |
557 $(SED) -e "s|%OCTAVE_CONF_DEFS%|\"${UGLY_DEFS}\"|" > $@-t | |
6152 | 558 $(simple-move-if-change-rule) |
2157 | 559 endef |
560 | |
561 define do-subst-default-vals | |
2223 | 562 echo "making $@ from $<" |
4084 | 563 $(SED) < $< > $@-t \ |
5451 | 564 -e "s|%OCTAVE_ARCHLIBDIR%|\"${archlibdir}\"|" \ |
565 -e "s|%OCTAVE_BINDIR%|\"${bindir}\"|" \ | |
566 -e "s|%OCTAVE_CANONICAL_HOST_TYPE%|\"${canonical_host_type}\"|" \ | |
567 -e "s|%OCTAVE_DATADIR%|\"${datadir}\"|" \ | |
5847 | 568 -e "s|%OCTAVE_DATAROOTDIR%|\"${datarootdir}\"|" \ |
5451 | 569 -e "s|%OCTAVE_DEFAULT_PAGER%|\"${DEFAULT_PAGER}\"|" \ |
8865
eace5649a8b5
set default value for doc_cache_file variable
John W. Eaton <jwe@octave.org>
parents:
8850
diff
changeset
|
570 -e "s|%OCTAVE_DOC_CACHE_FILE%|\"${doc_cache_file}\"|" \ |
5451 | 571 -e "s|%OCTAVE_EXEC_PREFIX%|\"${exec_prefix}\"|" \ |
572 -e "s|%OCTAVE_FCNFILEDIR%|\"${fcnfiledir}\"|" \ | |
573 -e "s|%OCTAVE_IMAGEDIR%|\"${imagedir}\"|" \ | |
574 -e "s|%OCTAVE_INCLUDEDIR%|\"${includedir}\"|" \ | |
575 -e "s|%OCTAVE_INFODIR%|\"${infodir}\"|" \ | |
576 -e "s|%OCTAVE_INFOFILE%|\"${infofile}\"|" \ | |
577 -e "s|%OCTAVE_LIBDIR%|\"${libdir}\"|" \ | |
578 -e "s|%OCTAVE_LIBEXECDIR%|\"${libexecdir}\"|" \ | |
579 -e "s|%OCTAVE_LOCALAPIFCNFILEDIR%|\"${localapifcnfiledir}\"|" \ | |
580 -e "s|%OCTAVE_LOCALAPIOCTFILEDIR%|\"${localapioctfiledir}\"|" \ | |
581 -e "s|%OCTAVE_LOCALARCHLIBDIR%|\"${localarchlibdir}\"|" \ | |
582 -e "s|%OCTAVE_LOCALFCNFILEDIR%|\"${localfcnfiledir}\"|" \ | |
583 -e "s|%OCTAVE_LOCALOCTFILEDIR%|\"${localoctfiledir}\"|" \ | |
584 -e "s|%OCTAVE_LOCALSTARTUPFILEDIR%|\"${localstartupfiledir}\"|" \ | |
5909 | 585 -e "s|%OCTAVE_LOCALAPIARCHLIBDIR%|\"${localapiarchlibdir}\"|" \ |
5451 | 586 -e "s|%OCTAVE_LOCALVERARCHLIBDIR%|\"${localverarchlibdir}\"|" \ |
587 -e "s|%OCTAVE_LOCALVERFCNFILEDIR%|\"${localverfcnfiledir}\"|" \ | |
588 -e "s|%OCTAVE_LOCALVEROCTFILEDIR%|\"${localveroctfiledir}\"|" \ | |
589 -e "s|%OCTAVE_MAN1DIR%|\"${man1dir}\"|" \ | |
590 -e "s|%OCTAVE_MAN1EXT%|\"${man1ext}\"|" \ | |
591 -e "s|%OCTAVE_MANDIR%|\"${mandir}\"|" \ | |
592 -e "s|%OCTAVE_OCTFILEDIR%|\"${octfiledir}\"|" \ | |
8719
679c270b7584
install DOC and NEWS in $octetcdir
John W. Eaton <jwe@octave.org>
parents:
8618
diff
changeset
|
593 -e "s|%OCTAVE_OCTETCDIR%|\"${octetcdir}\"|" \ |
5451 | 594 -e "s|%OCTAVE_OCTINCLUDEDIR%|\"${octincludedir}\"|" \ |
595 -e "s|%OCTAVE_OCTLIBDIR%|\"${octlibdir}\"|" \ | |
596 -e "s|%OCTAVE_STARTUPFILEDIR%|\"${startupfiledir}\"|" \ | |
597 -e "s|%OCTAVE_PREFIX%|\"${prefix}\"|" \ | |
5658 | 598 -e "s|%OCTAVE_API_VERSION%|\"${api_version}\"|" \ |
599 -e "s|%OCTAVE_RELEASE%|\"${OCTAVE_RELEASE}\"|" \ | |
5451 | 600 -e "s|%OCTAVE_VERSION%|\"${version}\"|" |
6152 | 601 $(simple-move-if-change-rule) |
2157 | 602 endef |
4227 | 603 |
5708 | 604 define do-subst-texinfo-vals |
605 echo "making $@ from $<" | |
606 $(SED) < $< \ | |
6583 | 607 -e "s|%abs_top_srcdir%|${abs_top_srcdir}|" \ |
6577 | 608 -e "s|%top_srcdir%|${top_srcdir}|" \ |
5708 | 609 -e "s|%OCTAVE_HOME%|${prefix}|" \ |
610 -e "s|%OCTAVE_VERSION%|${version}|" \ | |
611 -e "s|%TEXINFO_COLAMD%|${TEXINFO_COLAMD}|" \ | |
612 -e "s|%TEXINFO_CHOLMOD%|${TEXINFO_CHOLMOD}|" \ | |
6855 | 613 -e "s|%TEXINFO_UMFPACK%|${TEXINFO_UMFPACK}|" \ |
614 -e "s|%TEXINFO_QHULL%|${TEXINFO_QHULL}|" | \ | |
5942 | 615 $(SED) -e "s|%OCTAVE_CONF_DEFS%|\"${UGLY_DEFS}\"|" > $@-t |
6152 | 616 $(simple-move-if-change-rule) |
5708 | 617 endef |
618 | |
5776 | 619 define do-subst-script-vals |
620 echo "making $@ from $<" | |
621 $(SED) < $< \ | |
7244 | 622 -e "s|%AWK%|${AWK}|g" \ |
623 -e "s|%FIND%|${FIND}|g" \ | |
8005
c0d7eb662384
run-octave.in: use sed to append : to path elements
John W. Eaton <jwe@octave.org>
parents:
7926
diff
changeset
|
624 -e "s|%SED%|${SED}|g" \ |
6028 | 625 -e "s|%library_path_var%|${library_path_var}|g" \ |
9186
49a0c58a7dcf
Added SHLPRE for SHLEXT instead of SHLLIBPRE
marco_atzeri@yahoo.it
parents:
9078
diff
changeset
|
626 -e "s|%liboctinterp%|${SHLPRE}octinterp.${SHLEXT}|g" \ |
49a0c58a7dcf
Added SHLPRE for SHLEXT instead of SHLLIBPRE
marco_atzeri@yahoo.it
parents:
9078
diff
changeset
|
627 -e "s|%liboctave%|${SHLPRE}octave.${SHLEXT}|g" \ |
49a0c58a7dcf
Added SHLPRE for SHLEXT instead of SHLLIBPRE
marco_atzeri@yahoo.it
parents:
9078
diff
changeset
|
628 -e "s|%libcruft%|${SHLPRE}cruft.${SHLEXT}|g" \ |
5776 | 629 -e "s|%srcdir%|${srcdir}|" \ |
630 -e "s|%top_srcdir%|${top_srcdir}|" \ | |
5793 | 631 -e "s|%abs_top_srcdir%|${abs_top_srcdir}|" \ |
5776 | 632 -e "s|%builddir%|$(shell pwd)|" > $@-t |
6152 | 633 $(simple-move-if-change-rule) |
5776 | 634 endef |
635 | |
6102 | 636 define do-subst-f77-mangling |
637 echo "making $@ from $<" | |
638 $(SED) < $< \ | |
639 -e "s|%F77_TOLOWER%|${F77_TOLOWER}|g" \ | |
640 -e "s|%F77_APPEND_UNDERSCORE%|${F77_APPEND_UNDERSCORE}|" \ | |
641 -e "s|%F77_APPEND_EXTRA_UNDERSCORE%|${F77_APPEND_EXTRA_UNDERSCORE}|" > $@-t | |
6152 | 642 $(simple-move-if-change-rule) |
6102 | 643 endef |
644 | |
5597 | 645 define do-mkpkgadd |
646 $(top_srcdir)/mkpkgadd $(srcdir) > PKG_ADD.t | |
647 if [ -n "`cat PKG_ADD.t`" ]; then \ | |
648 mv PKG_ADD.t PKG_ADD ; \ | |
649 else \ | |
650 rm -f PKG_ADD.t ; \ | |
651 fi | |
652 endef | |
653 | |
4227 | 654 define do-script-install |
4413 | 655 $(top_srcdir)/mkinstalldirs \ |
656 $(addprefix $(DESTDIR), $(fcnfiledir)/$(script_sub_dir)) | |
6279 | 657 for f in $(FCN_FILES); do \ |
658 fbase=`basename $$f`; \ | |
659 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$fbase; \ | |
660 $(INSTALL_DATA) $$f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$fbase; \ | |
4227 | 661 done |
4413 | 662 $(top_srcdir)/mkpkgadd $(DESTDIR)$(fcnfiledir)/$(script_sub_dir) > $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t |
663 if [ -n "`cat $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t`" ]; then \ | |
9078
e92591954ea2
Makeconf.in (do-script-install): Use $(INSTALL_DATA) instead of mv to install PKG_ADD file
John W. Eaton <jwe@octave.org>
parents:
9077
diff
changeset
|
664 $(INSTALL_DATA) $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD ; \ |
4227 | 665 else \ |
4413 | 666 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t ; \ |
4227 | 667 fi |
668 endef | |
669 | |
670 define do-script-uninstall | |
671 for f in $(FCN_FILES_NO_DIR); \ | |
4413 | 672 do rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$f; \ |
4227 | 673 done |
6366 | 674 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD |
6654 | 675 -rmdir $(addprefix $(DESTDIR), $(fcnfiledir)/$(script_sub_dir)) |
4227 | 676 endef |
7698
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
677 |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
678 define do-check-m-sources |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
679 for f in $(notdir $(wildcard $(srcdir)/*.m)); do \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
680 found=false; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
681 for m in $(SOURCES); do \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
682 if [ "$$f" = "$$m" ]; then \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
683 found=true; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
684 break; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
685 fi; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
686 done; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
687 if $$found; then \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
688 true; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
689 else \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
690 echo "$(script_sub_dir)/$$f: not listed in SOURCES"; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
691 fi; \ |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
692 done |
4584feed3ec4
check-m-sources: new target for script Makefiles
John W. Eaton <jwe@octave.org>
parents:
7361
diff
changeset
|
693 endef |