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