Mercurial > octave-dspies
comparison build-aux/common.mk @ 12733:b67c2d580a25 stable
maint: clean up top-level directory
* build-aux/bootstrap: Rename from bootstrap.
* build-aux/bootstrap.conf: Rename from bootstrap.conf.
* build-aux/changelog.tmpl: Rename from changelog.tmpl.
* build-aux/bootstrap.conf: Update for new file locations.
* build-aux/common.mk: Rename from common.mk.
* build-aux/diff-template: Rename from diff-template.
* build-aux/mk-opts.pl: Rename from mk-opts.pl.
* build-aux/mkinstalldirs: Rename from mkinstalldirs.
* build-aux/move-if-change: Rename from move-if-change.
* etc/CHECKLIST: Rename from CHECKLIST.
* etc/HACKING: Rename from HACKING.
* etc/NEWS.1: Rename from NEWS.1.
* etc/NEWS.2: Rename from NEWS.2.
* etc/NEWS.3: Rename from NEWS.3.
* etc/OLD-ChangeLogs/ChangeLog: Rename from OLD-ChangeLogs/ChangeLog.
* etc/OLD-ChangeLogs/ChangeLog.1: Rename from
OLD-ChangeLogs/ChangeLog.1.
* etc/OLD-ChangeLogs/doc-ChangeLog: Rename from
OLD-ChangeLogs/doc-ChangeLog.
* etc/OLD-ChangeLogs/libcruft-ChangeLog: Rename from
OLD-ChangeLogs/libcruft-ChangeLog.
* etc/OLD-ChangeLogs/liboctave-ChangeLog: Rename from
OLD-ChangeLogs/liboctave-ChangeLog.
* etc/OLD-ChangeLogs/scripts-ChangeLog: Rename from
OLD-ChangeLogs/scripts-ChangeLog.
* etc/OLD-ChangeLogs/src-ChangeLog: Rename from
OLD-ChangeLogs/src-ChangeLog.
* etc/OLD-ChangeLogs/test-ChangeLog: Rename from
OLD-ChangeLogs/test-ChangeLog.
* etc/PROJECTS: Rename from PROJECTS.
* etc/README.Cygwin: Rename from README.Cygwin.
* etc/README.Linux: Rename from README.Linux.
* etc/README.MacOS: Rename from README.MacOS.
* etc/README.MinGW: Rename from README.MinGW.
* etc/README.Windows: Rename from README.Windows.
* etc/README.devel: Rename from README.devel.
* etc/README.ftp: Rename from README.ftp.
* etc/README.gnuplot: Rename from README.gnuplot.
* etc/README.kpathsea: Rename from README.kpathsea.
* etc/README.mirrors: Rename from README.mirrors.
* etc/README.snapshots: Rename from README.snapshots.
* etc/gdbinit: Rename from gdbinit.
* m4/acinclude.m4: Rename from acinclude.m4.
* src/mkoctfile.cc.in: Rename from mkoctfile.cc.in.
* src/mkoctfile.in: Rename from mkoctfile.in.
* src/octave-config.cc.in: Rename from octave-config.cc.in.
* src/octave-config.in: Rename from octave-config.in.
* config.guess, config.sub, missing, octave-sh: Delete.
* Makefile.am: Include build-aux/common.mk instead of common.mk.
* examples/Makefile.am, libcruft/Makefile.am,
liboctave/Makefile.am, liboctave/config-ops.sh,
scripts/Makefile.am, src/DLD-FUNCTIONS/config-module.sh,
test/Makefile.am, autogen.sh, doc/Makefile.am,
doc/faq/Makefile.am, doc/icons/Makefile.am,
doc/interpreter/Makefile.am, doc/interpreter/config-images.sh,
doc/liboctave/Makefile.am, doc/refcard/Makefile.am,
build-aux/common.mk, src/Makefile.am: Update for new file locations.
* Makefile.am: Don't build mkoctfile or octave-config here.
* README: Update INSTALL info.
* build-aux/mkinstalldirs: Update to new version.
* src/Makefile.am (mkoctfile, octave-config): New targets.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 10 Jun 2011 14:35:42 -0400 |
parents | common.mk@10f6727fbaa8 |
children | edc5ec6e949b |
comparison
equal
deleted
inserted
replaced
12732:10f6727fbaa8 | 12733:b67c2d580a25 |
---|---|
1 AWK = @AWK@ | |
2 export AWK | |
3 | |
4 SED = @SED@ | |
5 export SED | |
6 | |
7 FIND = @FIND@ | |
8 export FIND | |
9 | |
10 PERL = @PERL@ | |
11 export PERL | |
12 | |
13 PYTHON = @PYTHON@ | |
14 | |
15 GNUPLOT = @GNUPLOT@ | |
16 | |
17 DESKTOP_FILE_INSTALL = @DESKTOP_FILE_INSTALL@ | |
18 | |
19 OCTAVE_VERSION = @OCTAVE_VERSION@ | |
20 OCTAVE_API_VERSION_NUMBER = @OCTAVE_API_VERSION_NUMBER@ | |
21 OCTAVE_API_VERSION = @OCTAVE_API_VERSION@ | |
22 OCTAVE_RELEASE_DATE = @OCTAVE_RELEASE_DATE@ | |
23 OCTAVE_COPYRIGHT = @OCTAVE_COPYRIGHT@ | |
24 | |
25 version = $(OCTAVE_VERSION) | |
26 api_version = $(OCTAVE_API_VERSION) | |
27 | |
28 ## AM_LIBTOOLFLAGS = --silent | |
29 | |
30 #### Start of system configuration section. #### | |
31 | |
32 EXEEXT = @EXEEXT@ | |
33 | |
34 BUILD_EXEEXT = @BUILD_EXEEXT@ | |
35 | |
36 LEX = @LEX@ | |
37 AM_LFLAGS = @LFLAGS@ | |
38 LEXLIB = @LEXLIB@ | |
39 | |
40 YACC = @YACC@ | |
41 AM_YFLAGS = -dv | |
42 | |
43 GPERF = @GPERF@ | |
44 | |
45 AR = @AR@ | |
46 ARFLAGS = @ARFLAGS@ | |
47 | |
48 TEMPLATE_AR = @TEMPLATE_AR@ | |
49 TEMPLATE_ARFLAGS = @TEMPLATE_ARFLAGS@ | |
50 | |
51 RANLIB = @RANLIB@ | |
52 | |
53 LN_S = @LN_S@ | |
54 | |
55 MAKEINFO = @MAKEINFO@ | |
56 TEXI2DVI = @TEXI2DVI@ | |
57 TEXI2PDF = @TEXI2PDF@ | |
58 | |
59 GHOSTSCRIPT = @GHOSTSCRIPT@ | |
60 | |
61 DEFAULT_PAGER = @DEFAULT_PAGER@ | |
62 | |
63 ENABLE_DYNAMIC_LINKING = @ENABLE_DYNAMIC_LINKING@ | |
64 | |
65 SHLEXT = @SHLEXT@ | |
66 SHLEXT_VER = @SHLEXT_VER@ | |
67 SHLLIB = @SHLLIB@ | |
68 SHLLIB_VER = @SHLLIB_VER@ | |
69 SHLBIN = @SHLBIN@ | |
70 SHLBIN_VER = @SHLBIN_VER@ | |
71 SHLLINKEXT= | |
72 | |
73 LIBEXT = a | |
74 LIBPRE = @LIBPRE@ | |
75 SHLPRE = @SHLPRE@ | |
76 SHLLIBPRE = @SHLLIBPRE@ | |
77 SHLBINPRE = @SHLBINPRE@ | |
78 | |
79 # Fortran compiler flags. | |
80 | |
81 FC = @FC@ | |
82 F77 = @F77@ | |
83 AM_FFLAGS = @FFLAGS@ | |
84 FPICFLAG = @FPICFLAG@ | |
85 ALL_FFLAGS = $(FFLAGS) | |
86 F77_FLOAT_STORE_FLAG = @F77_FLOAT_STORE_FLAG@ | |
87 F77_INTEGER_8_FLAG = @F77_INTEGER_8_FLAG@ | |
88 | |
89 F77_TOLOWER=@F77_TOLOWER@ | |
90 F77_APPEND_UNDERSCORE=@F77_TOLOWER@ | |
91 F77_APPEND_EXTRA_UNDERSCORE=@F77_TOLOWER@ | |
92 | |
93 X11_INCFLAGS = @X11_INCFLAGS@ | |
94 X11_LIBS = @X11_LIBS@ | |
95 | |
96 CARBON_LIBS = @CARBON_LIBS@ | |
97 | |
98 MAGICK_CPPFLAGS = @MAGICK_CPPFLAGS@ | |
99 MAGICK_LDFLAGS = @MAGICK_LDFLAGS@ | |
100 MAGICK_LIBS = @MAGICK_LIBS@ | |
101 | |
102 PTHREAD_CFLAGS = @PTHREAD_CFLAGS@ | |
103 PTHREAD_LIBS = @PTHREAD_LIBS@ | |
104 | |
105 LIBFLAGS = -L$(top_builddir) | |
106 | |
107 DEFS = @DEFS@ | |
108 | |
109 UGLY_DEFS = @UGLY_DEFS@ | |
110 | |
111 CC = @CC@ | |
112 CC_VERSION = @CC_VERSION@ | |
113 CONFIGURE_CFLAGS = @CFLAGS@ | |
114 CPICFLAG = @CPICFLAG@ | |
115 XTRA_CFLAGS = @XTRA_CFLAGS@ | |
116 WARN_CFLAGS = @WARN_CFLAGS@ | |
117 AM_CFLAGS = $(CONFIGURE_CFLAGS) \ | |
118 $(INCFLAGS) $(DEFS) $(XTRA_CFLAGS) $(WARN_CFLAGS) $(CFLAGS) $(PTHREAD_CFLAGS) | |
119 BUG_CFLAGS = $(DEFS) $(XTRA_CFLAGS) $(WARN_CFLAGS) $(CFLAGS) | |
120 | |
121 BUILD_CC = @BUILD_CC@ | |
122 BUILD_CFLAGS = @BUILD_CFLAGS@ | |
123 | |
124 DEPEND_FLAGS = @DEPEND_FLAGS@ | |
125 DEPEND_EXTRA_SED_PATTERN = @DEPEND_EXTRA_SED_PATTERN@ | |
126 INCLUDE_DEPS = @INCLUDE_DEPS@ | |
127 # ifeq ($(INCLUDE_DEPS),false) | |
128 # omit_deps = true; | |
129 # endif | |
130 | |
131 GRAPHICS_CFLAGS = @GRAPHICS_CFLAGS@ | |
132 | |
133 CXX = @CXX@ | |
134 CXX_VERSION = @CXX_VERSION@ | |
135 CXXCPP = @CXXCPP@ | |
136 CONFIGURE_CXXFLAGS = @CXXFLAGS@ | |
137 CXXPICFLAG = @CXXPICFLAG@ | |
138 XTRA_CXXFLAGS = @XTRA_CXXFLAGS@ | |
139 WARN_CXXFLAGS = @WARN_CXXFLAGS@ | |
140 AM_CXXFLAGS = $(CONFIGURE_CXXFLAGS) \ | |
141 $(INCFLAGS) $(DEFS) $(XTRA_CXXFLAGS) $(WARN_CXXFLAGS) $(CXXFLAGS) $(PTHREAD_CFLAGS) | |
142 BUG_CXXFLAGS = $(DEFS) $(XTRA_CXXFLAGS) $(WARN_CXXFLAGS) $(CXXFLAGS) | |
143 | |
144 BUILD_CXX = @BUILD_CXX@ | |
145 BUILD_CXXFLAGS = @BUILD_CXXFLAGS@ | |
146 | |
147 NO_UNDEFINED_LDFLAG = @NO_UNDEFINED_LDFLAG@ | |
148 | |
149 LD_CXX = @LD_CXX@ | |
150 LD_STATIC_FLAG = @LD_STATIC_FLAG@ | |
151 #ALL_LDFLAGS = $(LIBFLAGS) $(LD_STATIC_FLAG) $(CPICFLAG) $(LDFLAGS) | |
152 | |
153 BUILD_LDFLAGS = @BUILD_LDFLAGS@ | |
154 | |
155 SH_LD = @SH_LD@ | |
156 SH_LDFLAGS = @SH_LDFLAGS@ | |
157 | |
158 DL_LD = @DL_LD@ | |
159 DL_LDFLAGS = @DL_LDFLAGS@ | |
160 | |
161 SONAME_FLAGS = @SONAME_FLAGS@ | |
162 | |
163 RDYNAMIC_FLAG = @RDYNAMIC_FLAG@ | |
164 | |
165 RLD_FLAG = @RLD_FLAG@ | |
166 | |
167 FLIBS = @FLIBS@ | |
168 | |
169 LIBOCTINTERP = @LIBOCTINTERP@ | |
170 LIBOCTAVE = @LIBOCTAVE@ | |
171 LIBCRUFT = @LIBCRUFT@ | |
172 | |
173 FT2_CFLAGS = @FT2_CFLAGS@ | |
174 FT2_LIBS = @FT2_LIBS@ | |
175 | |
176 HDF5_CPPFLAGS = @HDF5_CPPFLAGS@ | |
177 HDF5_LDFLAGS = @HDF5_LDFLAGS@ | |
178 HDF5_LIBS = @HDF5_LIBS@ | |
179 | |
180 Z_CPPFLAGS = @Z_CPPFLAGS@ | |
181 Z_LDFLAGS = @Z_LDFLAGS@ | |
182 Z_LIBS = @Z_LIBS@ | |
183 | |
184 GRAPHICS_LIBS = @GRAPHICS_LIBS@ | |
185 | |
186 QHULL_CPPFLAGS = @QHULL_CPPFLAGS@ | |
187 QHULL_LDFLAGS = @QHULL_LDFLAGS@ | |
188 QHULL_LIBS = @QHULL_LIBS@ | |
189 | |
190 REGEX_LIBS = @REGEX_LIBS@ | |
191 | |
192 LAPACK_LIBS = @LAPACK_LIBS@ | |
193 BLAS_LIBS = @BLAS_LIBS@ | |
194 | |
195 FFTW3_CPPFLAGS = @FFTW3_CPPFLAGS@ | |
196 FFTW3_LDFLAGS = @FFTW3_LDFLAGS@ | |
197 FFTW3_LIBS = @FFTW3_LIBS@ | |
198 | |
199 FFTW3F_CPPFLAGS = @FFTW3F_CPPFLAGS@ | |
200 FFTW3F_LDFLAGS = @FFTW3F_LDFLAGS@ | |
201 FFTW3F_LIBS = @FFTW3F_LIBS@ | |
202 | |
203 GLPK_CPPFLAGS = @GLPK_CPPFLAGS@ | |
204 GLPK_LDFLAGS = @GLPK_LDFLAGS@ | |
205 GLPK_LIBS = @GLPK_LIBS@ | |
206 | |
207 CURL_CPPFLAGS = @CURL_CPPFLAGS@ | |
208 CURL_LDFLAGS = @CURL_LDFLAGS@ | |
209 CURL_LIBS = @CURL_LIBS@ | |
210 | |
211 AMD_CPPFLAGS = @AMD_CPPFLAGS@ | |
212 AMD_LDFLAGS = @AMD_LDFLAGS@ | |
213 AMD_LIBS = @AMD_LIBS@ | |
214 | |
215 CAMD_CPPFLAGS = @CAMD_CPPFLAGS@ | |
216 CAMD_LDFLAGS = @CAMD_LDFLAGS@ | |
217 CAMD_LIBS = @CAMD_LIBS@ | |
218 | |
219 COLAMD_CPPFLAGS = @COLAMD_CPPFLAGS@ | |
220 COLAMD_LDFLAGS = @COLAMD_LDFLAGS@ | |
221 COLAMD_LIBS = @COLAMD_LIBS@ | |
222 | |
223 CCOLAMD_CPPFLAGS = @CCOLAMD_CPPFLAGS@ | |
224 CCOLAMD_LDFLAGS = @CCOLAMD_LDFLAGS@ | |
225 CCOLAMD_LIBS = @CCOLAMD_LIBS@ | |
226 | |
227 CHOLMOD_CPPFLAGS = @CHOLMOD_CPPFLAGS@ | |
228 CHOLMOD_LDFLAGS = @CHOLMOD_LDFLAGS@ | |
229 CHOLMOD_LIBS = @CHOLMOD_LIBS@ | |
230 | |
231 CXSPARSE_CPPFLAGS = @CXSPARSE_CPPFLAGS@ | |
232 CXSPARSE_LDFLAGS = @CXSPARSE_LDFLAGS@ | |
233 CXSPARSE_LIBS = @CXSPARSE_LIBS@ | |
234 | |
235 UMFPACK_CPPFLAGS = @UMFPACK_CPPFLAGS@ | |
236 UMFPACK_LDFLAGS = @UMFPACK_LDFLAGS@ | |
237 UMFPACK_LIBS = @UMFPACK_LIBS@ | |
238 | |
239 OPENGL_LIBS = @OPENGL_LIBS@ | |
240 | |
241 QRUPDATE_CPPFLAGS = @QRUPDATE_CPPFLAGS@ | |
242 QRUPDATE_LDFLAGS = @QRUPDATE_LDFLAGS@ | |
243 QRUPDATE_LIBS = @QRUPDATE_LIBS@ | |
244 | |
245 READLINE_LIBS = @READLINE_LIBS@ | |
246 TERM_LIBS = @TERM_LIBS@ | |
247 | |
248 DL_LIBS = @DL_LIBS@ | |
249 LIBS = @LIBS@ | |
250 | |
251 ALL_CPPFLAGS = $(CPPFLAGS) $(HDF5_CPPFLAGS) $(Z_CPPFLAGS) | |
252 | |
253 SPARSE_XCPPFLAGS = \ | |
254 $(CHOLMOD_CPPFLAGS) $(UMFPACK_CPPFLAGS) \ | |
255 $(AMD_CPPFLAGS) $(CAMD_CPPFLAGS) $(COLAMD_CPPFLAGS) \ | |
256 $(CCOLAMD_CPPFLAGS) $(CXSPARSE_CPPFLAGS) | |
257 | |
258 SPARSE_XLDFLAGS = \ | |
259 $(CHOLMOD_LDFLAGS) $(UMFPACK_LDFLAGS) \ | |
260 $(AMD_LDFLAGS) $(CAMD_LDFLAGS) $(COLAMD_LDFLAGS) \ | |
261 $(CCOLAMD_LDFLAGS) $(CXSPARSE_LDFLAGS) | |
262 | |
263 ## Order matters, at least on some systems (Cygwin, for example). | |
264 SPARSE_XLIBS = \ | |
265 $(CHOLMOD_LIBS) $(UMFPACK_LIBS) \ | |
266 $(AMD_LIBS) $(CAMD_LIBS) $(COLAMD_LIBS) \ | |
267 $(CCOLAMD_LIBS) $(CXSPARSE_LIBS) | |
268 | |
269 FFTW_XCPPFLAGS = $(FFTW3_CPPFLAGS) $(FFTW3F_CPPFLAGS) | |
270 | |
271 FFTW_XLDFLAGS = $(FFTW3_LDFLAGS) $(FFTW3F_LDFLAGS) | |
272 | |
273 FFTW_XLIBS = $(FFTW3_LIBS) $(FFTW3F_LIBS) | |
274 | |
275 USE_64_BIT_IDX_T = @USE_64_BIT_IDX_T@ | |
276 OCTAVE_IDX_TYPE = @OCTAVE_IDX_TYPE@ | |
277 | |
278 TEXINFO_COLAMD = @TEXINFO_COLAMD@ | |
279 TEXINFO_CHOLMOD = @TEXINFO_CHOLMOD@ | |
280 TEXINFO_UMFPACK = @TEXINFO_UMFPACK@ | |
281 TEXINFO_QHULL = @TEXINFO_QHULL@ | |
282 | |
283 # The arguments passed to configure. | |
284 config_opts = @config_opts@ | |
285 | |
286 CONFIG_SUBDIRS = @subdirs@ | |
287 | |
288 # ==================== Where To Install Things ==================== | |
289 | |
290 # The default location for installation. Everything is placed in | |
291 # subdirectories of this directory. The default values for many of | |
292 # the variables below are expressed in terms of this one, so you may | |
293 # not need to change them. This defaults to /usr/local. | |
294 prefix = @prefix@ | |
295 | |
296 # Like `prefix', but used for architecture-specific files. | |
297 exec_prefix = @exec_prefix@ | |
298 | |
299 # Where to install Octave and other binaries that people will want to | |
300 # run directly. | |
301 bindir = @bindir@ | |
302 | |
303 # Normally the directory for installing executables that system | |
304 # administrators run. This is the same as libexecdir on Cygwin systems. | |
305 sbindir = @sbindir@ | |
306 | |
307 # The root of the directory tree for read-only | |
308 # architecture-independent data files. | |
309 datarootdir = @datarootdir@ | |
310 | |
311 # Where to install architecture-independent data files. ${fcnfiledir} | |
312 # and ${localfcnfiledir} are subdirectories of this. | |
313 datadir = @datadir@ | |
314 | |
315 libdir = @libdir@ | |
316 | |
317 # Where to install and expect extra files like NEWS and doc-cache. | |
318 octetcdir = @octetcdir@ | |
319 | |
320 # Where to install and expect libraries like libcruft.a, liboctave.a, | |
321 # and other architecture-dependent data. | |
322 octlibdir = @octlibdir@ | |
323 | |
324 # Where to install and expect executable programs to be run by Octave | |
325 # rather than directly by users. | |
326 libexecdir = @libexecdir@ | |
327 | |
328 # The prefix for Octave's include file directory. The default is | |
329 # ${prefix}/include | |
330 includedir = @includedir@ | |
331 | |
332 # Where to install Octave's man pages, and what extension they should | |
333 # have. The default is ${prefix}/man/man1 | |
334 mandir = @mandir@ | |
335 man1dir = @man1dir@ | |
336 man1ext = @man1ext@ | |
337 | |
338 # The full path to the default doc cache file. | |
339 doc_cache_file = @doc_cache_file@ | |
340 | |
341 # Where to install and expect the info files describing Octave.. | |
342 infodir = @infodir@ | |
343 | |
344 # The full path to the default info file. | |
345 infofile = @infofile@ | |
346 | |
347 # ==================== Octave-specific directories ==================== | |
348 | |
349 # These variables hold the values specific to Octave. They are | |
350 # based on the values of the standard Make variables above. | |
351 | |
352 # What is the path separation character | |
353 sepchar = @sepchar@ | |
354 | |
355 # Where to install Octave's include files. The default is | |
356 # ${includedir}/octave-${version}/octave | |
357 octincludedir = @octincludedir@ | |
358 | |
359 # Where to install the function file distributed with | |
360 # Octave. This includes the Octave version, so that the | |
361 # function files for different versions of Octave will install | |
362 # themselves in separate directories. | |
363 fcnfiledir = @fcnfiledir@ | |
364 | |
365 # Directories Octave should search for function files specific | |
366 # to this site (i.e. customizations), before consulting | |
367 # ${fcnfiledir}. This should be a colon-separated list of | |
368 # directories. | |
369 localfcnfiledir = @localfcnfiledir@ | |
370 localapifcnfiledir = @localapifcnfiledir@ | |
371 localverfcnfiledir = @localverfcnfiledir@ | |
372 | |
373 # Where to put executables to be run by Octave rather than | |
374 # the user. This path usually includes the Octave version | |
375 # and configuration name, so that multiple configurations | |
376 # for multiple versions of Octave may be installed at once. | |
377 archlibdir = @archlibdir@ | |
378 | |
379 # Where to put executables to be run by Octave rather than by the | |
380 # user that are specific to this site. | |
381 localarchlibdir = @localarchlibdir@ | |
382 localapiarchlibdir = @localapiarchlibdir@ | |
383 localverarchlibdir = @localverarchlibdir@ | |
384 | |
385 # Where to put object files that will by dynamically loaded. | |
386 # This path usually includes the Octave version and configuration | |
387 # name, so that multiple configurations for multiple versions of | |
388 # Octave may be installed at once. | |
389 octfiledir = @octfiledir@ | |
390 | |
391 # Directories Octave should search for object files that will be | |
392 # dynamically loaded and that are specific to this site | |
393 # (i.e. customizations), before consulting ${octfiledir}. This should | |
394 # be a colon-separated list of directories. | |
395 localoctfiledir = @localoctfiledir@ | |
396 localapioctfiledir = @localapioctfiledir@ | |
397 localveroctfiledir = @localveroctfiledir@ | |
398 | |
399 # Where Octave will search to find image files. | |
400 imagedir = @imagedir@ | |
401 | |
402 # The type of computer we are running on. | |
403 canonical_host_type = @canonical_host_type@ | |
404 | |
405 # Where Octave will look for startup files | |
406 startupfiledir = ${fcnfiledir}/startup | |
407 localstartupfiledir = ${localfcnfiledir}/startup | |
408 | |
409 # LD_LIBRARY_PATH, DYLD_LIBRARY_PATH, PATH, ... | |
410 library_path_var = @library_path_var@ | |
411 | |
412 # The separator used for elements of the LD_PRELOAD variable (might be | |
413 # a space, so protect with $(null)) | |
414 null = | |
415 ldpreloadsep = $(null)@ldpreloadsep@$(null) | |
416 | |
417 NO_OCT_FILE_STRIP = @NO_OCT_FILE_STRIP@ | |
418 | |
419 # The following pattern rules and the substitution functions require | |
420 # GNU make. If you don't have it, get it! | |
421 | |
422 define simple_move_if_change_rule | |
423 if [ -s $@-t ]; then \ | |
424 $(top_srcdir)/build-aux/move-if-change $@-t $@; \ | |
425 else \ | |
426 echo "$@-t is empty!" 1>&2; \ | |
427 rm -f $@-t; \ | |
428 exit 1; \ | |
429 fi | |
430 endef | |
431 | |
432 define cp_update_rule | |
433 if [ "x$(srcdir)" != "x." ] && [ -f $(srcdir)/$@ ] && [ ! -f $@ ]; then \ | |
434 cp $(srcdir)/$@ $@; \ | |
435 touch -r $(srcdir)/$@ $@; \ | |
436 fi | |
437 endef | |
438 | |
439 # Yes, the second sed command near the end is needed, to avoid limits | |
440 # in command lengths for some versions of sed. UGLY_DEFS is often | |
441 # quite large, so it makes sense to split this command there. | |
442 | |
443 define do_subst_config_vals | |
444 echo "making $@ from $<" | |
445 $(SED) < $< \ | |
446 -e "s|%NO_OCT_FILE_STRIP%|${NO_OCT_FILE_STRIP}|" \ | |
447 -e "s|%OCTAVE_BINDIR%|\"${bindir}\"|" \ | |
448 -e "s|%OCTAVE_CONF_ALL_CFLAGS%|\"${ALL_CFLAGS}\"|" \ | |
449 -e "s|%OCTAVE_CONF_ALL_CXXFLAGS%|\"${ALL_CXXFLAGS}\"|" \ | |
450 -e "s|%OCTAVE_CONF_ALL_FFLAGS%|\"${ALL_FFLAGS}\"|" \ | |
451 -e "s|%OCTAVE_CONF_ALL_LDFLAGS%|\"${ALL_LDFLAGS}\"|" \ | |
452 -e "s|%OCTAVE_CONF_AMD_CPPFLAGS%|\"${AMD_CPPFLAGS}\"|" \ | |
453 -e "s|%OCTAVE_CONF_AMD_LDFLAGS%|\"${AMD_LDFLAGS}\"|" \ | |
454 -e "s|%OCTAVE_CONF_AMD_LIBS%|\"${AMD_LIBS}\"|" \ | |
455 -e "s|%OCTAVE_CONF_AR%|\"${AR}\"|" \ | |
456 -e "s|%OCTAVE_CONF_ARFLAGS%|\"${ARFLAGS}\"|" \ | |
457 -e "s|%OCTAVE_CONF_BLAS_LIBS%|\"${BLAS_LIBS}\"|" \ | |
458 -e "s|%OCTAVE_CONF_CAMD_CPPFLAGS%|\"${CAMD_CPPFLAGS}\"|" \ | |
459 -e "s|%OCTAVE_CONF_CAMD_LDFLAGS%|\"${CAMD_LDFLAGS}\"|" \ | |
460 -e "s|%OCTAVE_CONF_CAMD_LIBS%|\"${CAMD_LIBS}\"|" \ | |
461 -e "s|%OCTAVE_CONF_CANONICAL_HOST_TYPE%|\"${canonical_host_type}\"|" \ | |
462 -e "s|%OCTAVE_CONF_CARBON_LIBS%|\"${CARBON_LIBS}\"|" \ | |
463 -e "s|%OCTAVE_CONF_CC%|\"${CC}\"|" \ | |
464 -e "s|%OCTAVE_CONF_CC_VERSION%|\"${CC_VERSION}\"|" \ | |
465 -e "s|%OCTAVE_CONF_CCOLAMD_CPPFLAGS%|\"${CCOLAMD_CPPFLAGS}\"|" \ | |
466 -e "s|%OCTAVE_CONF_CCOLAMD_LDFLAGS%|\"${CCOLAMD_LDFLAGS}\"|" \ | |
467 -e "s|%OCTAVE_CONF_CCOLAMD_LIBS%|\"${CCOLAMD_LIBS}\"|" \ | |
468 -e "s|%OCTAVE_CONF_CFLAGS%|\"${CFLAGS}\"|" \ | |
469 -e "s|%OCTAVE_CONF_CHOLMOD_CPPFLAGS%|\"${CHOLMOD_CPPFLAGS}\"|" \ | |
470 -e "s|%OCTAVE_CONF_CHOLMOD_LDFLAGS%|\"${CHOLMOD_LDFLAGS}\"|" \ | |
471 -e "s|%OCTAVE_CONF_CHOLMOD_LIBS%|\"${CHOLMOD_LIBS}\"|" \ | |
472 -e "s|%OCTAVE_CONF_COLAMD_CPPFLAGS%|\"${COLAMD_CPPFLAGS}\"|" \ | |
473 -e "s|%OCTAVE_CONF_COLAMD_LDFLAGS%|\"${COLAMD_LDFLAGS}\"|" \ | |
474 -e "s|%OCTAVE_CONF_COLAMD_LIBS%|\"${COLAMD_LIBS}\"|" \ | |
475 -e "s|%OCTAVE_CONF_CPICFLAG%|\"${CPICFLAG}\"|" \ | |
476 -e "s|%OCTAVE_CONF_CPPFLAGS%|\"${CPPFLAGS}\"|" \ | |
477 -e "s|%OCTAVE_CONF_CURL_CPPFLAGS%|\"${CURL_CPPFLAGS}\"|" \ | |
478 -e "s|%OCTAVE_CONF_CURL_LDFLAGS%|\"${CURL_LDFLAGS}\"|" \ | |
479 -e "s|%OCTAVE_CONF_CURL_LIBS%|\"${CURL_LIBS}\"|" \ | |
480 -e "s|%OCTAVE_CONF_CXSPARSE_CPPFLAGS%|\"${CXSPARSE_CPPFLAGS}\"|" \ | |
481 -e "s|%OCTAVE_CONF_CXSPARSE_LDFLAGS%|\"${CXSPARSE_LDFLAGS}\"|" \ | |
482 -e "s|%OCTAVE_CONF_CXSPARSE_LIBS%|\"${CXSPARSE_LIBS}\"|" \ | |
483 -e "s|%OCTAVE_CONF_CXX%|\"${CXX}\"|" \ | |
484 -e "s|%OCTAVE_CONF_CXXCPP%|\"${CXXCPP}\"|" \ | |
485 -e "s|%OCTAVE_CONF_CXXFLAGS%|\"${CXXFLAGS}\"|" \ | |
486 -e "s|%OCTAVE_CONF_CXXPICFLAG%|\"${CXXPICFLAG}\"|" \ | |
487 -e "s|%OCTAVE_CONF_CXX_VERSION%|\"${CXX_VERSION}\"|" \ | |
488 -e "s|%OCTAVE_CONF_DEFAULT_PAGER%|\"${DEFAULT_PAGER}\"|" \ | |
489 -e "s|%OCTAVE_CONF_DEPEND_FLAGS%|\"${DEPEND_FLAGS}\"|" \ | |
490 -e "s|%OCTAVE_CONF_DEPEND_EXTRA_SED_PATTERN%|\"${DEPEND_EXTRA_SED_PATTERN}\"|" \ | |
491 -e "s|%OCTAVE_CONF_DL_LD%|\"${DL_LD}\"|" \ | |
492 -e "s|%OCTAVE_CONF_DL_LDFLAGS%|\"${DL_LDFLAGS}\"|" \ | |
493 -e "s|%OCTAVE_CONF_DL_LIBS%|\"${DL_LIBS}\"|" \ | |
494 -e "s|%OCTAVE_CONF_EXEEXT%|\"${EXEEXT}\"|" \ | |
495 -e "s|%OCTAVE_CONF_F77%|\"${F77}\"|" \ | |
496 -e "s|%OCTAVE_CONF_F77_FLOAT_STORE_FLAG%|\"${F77_FLOAT_STORE_FLAG}\"|" \ | |
497 -e "s|%OCTAVE_CONF_F77_INTEGER_8_FLAG%|\"${F77_INTEGER_8_FLAG}\"|" \ | |
498 -e "s|%OCTAVE_CONF_FC%|\"${FC}\"|" \ | |
499 -e "s|%OCTAVE_CONF_FFLAGS%|\"${FFLAGS}\"|" \ | |
500 -e "s|%OCTAVE_CONF_FFTW3_CPPFLAGS%|\"${FFTW3_CPPFLAGS}\"|" \ | |
501 -e "s|%OCTAVE_CONF_FFTW3_LDFLAGS%|\"${FFTW3_LDFLAGS}\"|" \ | |
502 -e "s|%OCTAVE_CONF_FFTW3_LIBS%|\"${FFTW3_LIBS}\"|" \ | |
503 -e "s|%OCTAVE_CONF_FFTW3F_CPPFLAGS%|\"${FFTW3F_CPPFLAGS}\"|" \ | |
504 -e "s|%OCTAVE_CONF_FFTW3F_LDFLAGS%|\"${FFTW3F_LDFLAGS}\"|" \ | |
505 -e "s|%OCTAVE_CONF_FFTW3F_LIBS%|\"${FFTW3F_LIBS}\"|" \ | |
506 -e "s|%OCTAVE_CONF_FLIBS%|\"${FLIBS}\"|" \ | |
507 -e "s|%OCTAVE_CONF_FPICFLAG%|\"${FPICFLAG}\"|" \ | |
508 -e "s|%OCTAVE_CONF_FT2_LIBS%|\"${FT2_LIBS}\"|" \ | |
509 -e "s|%OCTAVE_CONF_GLPK_CPPFLAGS%|\"${GLPK_CPPFLAGS}\"|" \ | |
510 -e "s|%OCTAVE_CONF_GLPK_LDFLAGS%|\"${GLPK_LDFLAGS}\"|" \ | |
511 -e "s|%OCTAVE_CONF_GLPK_LIBS%|\"${GLPK_LIBS}\"|" \ | |
512 -e "s|%OCTAVE_CONF_GNUPLOT%|\"${GNUPLOT}\"|" \ | |
513 -e "s|%OCTAVE_CONF_GRAPHICS_LIBS%|\"${GRAPHICS_LIBS}\"|" \ | |
514 -e "s|%OCTAVE_CONF_HDF5_CPPFLAGS%|\"${HDF5_CPPFLAGS}\"|" \ | |
515 -e "s|%OCTAVE_CONF_HDF5_LDFLAGS%|\"${HDF5_LDFLAGS}\"|" \ | |
516 -e "s|%OCTAVE_CONF_HDF5_LIBS%|\"${HDF5_LIBS}\"|" \ | |
517 -e "s|%OCTAVE_CONF_INCFLAGS%|\"${INCFLAGS}\"|" \ | |
518 -e "s|%OCTAVE_CONF_INCLUDEDIR%|\"${includedir}\"|" \ | |
519 -e "s|%OCTAVE_CONF_LAPACK_LIBS%|\"${LAPACK_LIBS}\"|" \ | |
520 -e "s|%OCTAVE_CONF_LD_CXX%|\"${LD_CXX}\"|" \ | |
521 -e "s|%OCTAVE_CONF_LDFLAGS%|\"${LDFLAGS}\"|" \ | |
522 -e "s|%OCTAVE_CONF_LD_STATIC_FLAG%|\"${LD_STATIC_FLAG}\"|" \ | |
523 -e "s|%OCTAVE_CONF_LEX%|\"${LEX}\"|" \ | |
524 -e "s|%OCTAVE_CONF_LEXLIB%|\"${LEXLIB}\"|" \ | |
525 -e "s|%OCTAVE_CONF_LFLAGS%|\"${LFLAGS}\"|" \ | |
526 -e "s|%OCTAVE_CONF_LIBCRUFT%|\"${LIBCRUFT}\"|" \ | |
527 -e "s|%OCTAVE_CONF_LIBDIR%|\"${libdir}\"|" \ | |
528 -e "s|%OCTAVE_CONF_LIBEXT%|\"${LIBEXT}\"|" \ | |
529 -e "s|%OCTAVE_CONF_LIBFLAGS%|\"${LIBFLAGS}\"|" \ | |
530 -e "s|%OCTAVE_CONF_LIBOCTAVE%|\"${LIBOCTAVE}\"|" \ | |
531 -e "s|%OCTAVE_CONF_LIBOCTINTERP%|\"${LIBOCTINTERP}\"|" \ | |
532 -e "s|%OCTAVE_CONF_LIBS%|\"${LIBS}\"|" \ | |
533 -e "s|%OCTAVE_CONF_LN_S%|\"${LN_S}\"|" \ | |
534 -e "s|%OCTAVE_CONF_MAGICK_CPPFLAGS%|\"${MAGICK_CPPFLAGS}\"|" \ | |
535 -e "s|%OCTAVE_CONF_MAGICK_LDFLAGS%|\"${MAGICK_LDFLAGS}\"|" \ | |
536 -e "s|%OCTAVE_CONF_MAGICK_LIBS%|\"${MAGICK_LIBS}\"|" \ | |
537 -e 's|%OCTAVE_CONF_MKOCTFILE_DL_LDFLAGS%|\"@MKOCTFILE_DL_LDFLAGS@\"|' \ | |
538 -e "s|%OCTAVE_CONF_OCTINCLUDEDIR%|\"${octincludedir}\"|" \ | |
539 -e "s|%OCTAVE_CONF_OCTLIBDIR%|\"${octlibdir}\"|" \ | |
540 -e "s|%OCTAVE_CONF_OPENGL_LIBS%|\"${OPENGL_LIBS}\"|" \ | |
541 -e "s|%OCTAVE_CONF_PREFIX%|\"${prefix}\"|" \ | |
542 -e "s|%OCTAVE_CONF_PTHREAD_CFLAGS%|\"${PTHREAD_CFLAGS}\"|" \ | |
543 -e "s|%OCTAVE_CONF_PTHREAD_LIBS%|\"${PTHREAD_LIBS}\"|" \ | |
544 -e "s|%OCTAVE_CONF_QHULL_CPPFLAGS%|\"${QHULL_CPPFLAGSS}\"|" \ | |
545 -e "s|%OCTAVE_CONF_QHULL_LDFLAGS%|\"${QHULL_LDFLAGSS}\"|" \ | |
546 -e "s|%OCTAVE_CONF_QHULL_LIBS%|\"${QHULL_LIBS}\"|" \ | |
547 -e "s|%OCTAVE_CONF_QRUPDATE_CPPFLAGS%|\"${QRUPDATE_CPPFLAGS}\"|" \ | |
548 -e "s|%OCTAVE_CONF_QRUPDATE_LDFLAGS%|\"${QRUPDATE_LDFLAGS}\"|" \ | |
549 -e "s|%OCTAVE_CONF_QRUPDATE_LIBS%|\"${QRUPDATE_LIBS}\"|" \ | |
550 -e "s|%OCTAVE_CONF_RANLIB%|\"${RANLIB}\"|" \ | |
551 -e "s|%OCTAVE_CONF_RDYNAMIC_FLAG%|\"${RDYNAMIC_FLAG}\"|" \ | |
552 -e "s|%OCTAVE_CONF_READLINE_LIBS%|\"${READLINE_LIBS}\"|" \ | |
553 -e "s|%OCTAVE_CONF_REGEX_LIBS%|\"${REGEX_LIBS}\"|" \ | |
554 -e "s|%OCTAVE_CONF_RLD_FLAG%|\"${RLD_FLAG}\"|" \ | |
555 -e "s|%OCTAVE_CONF_SED%|\"${SED}\"|" \ | |
556 -e "s|%OCTAVE_CONF_SHARED_LIBS%|\"${SHARED_LIBS}\"|" \ | |
557 -e "s|%OCTAVE_CONF_SHLEXT%|\"${SHLEXT}\"|" \ | |
558 -e "s|%OCTAVE_CONF_SHLLINKEXT%|\"${SHLLINKEXT}\"|" \ | |
559 -e "s|%OCTAVE_CONF_SHLEXT_VER%|\"${SHLEXT_VER}\"|" \ | |
560 -e "s|%OCTAVE_CONF_SH_LD%|\"${SH_LD}\"|" \ | |
561 -e "s|%OCTAVE_CONF_SH_LDFLAGS%|\"${SH_LDFLAGS}\"|" \ | |
562 -e "s|%OCTAVE_CONF_SONAME_FLAGS%|\"${SONAME_FLAGS}\"|" \ | |
563 -e "s|%OCTAVE_CONF_STATIC_LIBS%|\"${STATIC_LIBS}\"|" \ | |
564 -e "s|%OCTAVE_CONF_TERM_LIBS%|\"${TERM_LIBS}\"|" \ | |
565 -e "s|%OCTAVE_CONF_UGLY_DEFS%|\"${UGLY_DEFS}\"|" \ | |
566 -e "s|%OCTAVE_CONF_UMFPACK_CPPFLAGS%|\"${UMFPACK_CPPFLAGS}\"|" \ | |
567 -e "s|%OCTAVE_CONF_UMFPACK_LDFLAGS%|\"${UMFPACK_LDFLAGS}\"|" \ | |
568 -e "s|%OCTAVE_CONF_UMFPACK_LIBS%|\"${UMFPACK_LIBS}\"|" \ | |
569 -e "s|%OCTAVE_CONF_USE_64_BIT_IDX_T%|\"${USE_64_BIT_IDX_T}\"|" \ | |
570 -e "s|%OCTAVE_CONF_VERSION%|\"${version}\"|" \ | |
571 -e "s|%OCTAVE_CONF_ENABLE_DYNAMIC_LINKING%|\"${ENABLE_DYNAMIC_LINKING}\"|" \ | |
572 -e "s|%OCTAVE_CONF_X11_INCFLAGS%|\"${X11_INCFLAGS}\"|" \ | |
573 -e "s|%OCTAVE_CONF_X11_LIBS%|\"${X11_LIBS}\"|" \ | |
574 -e "s|%OCTAVE_CONF_XTRA_CFLAGS%|\"${XTRA_CFLAGS}\"|" \ | |
575 -e "s|%OCTAVE_CONF_XTRA_CXXFLAGS%|\"${XTRA_CXXFLAGS}\"|" \ | |
576 -e "s|%OCTAVE_CONF_YACC%|\"${YACC}\"|" \ | |
577 -e "s|%OCTAVE_CONF_YFLAGS%|\"${YFLAGS}\"|" \ | |
578 -e "s|%OCTAVE_CONF_Z_CPPFLAGS%|\"${Z_CPPFLAGS}\"|" \ | |
579 -e "s|%OCTAVE_CONF_Z_LDFLAGS%|\"${Z_LDFLAGS}\"|" \ | |
580 -e "s|%OCTAVE_CONF_Z_LIBS%|\"${Z_LIBS}\"|" \ | |
581 -e "s|%OCTAVE_CONF_config_opts%|\"${config_opts}\"|" | \ | |
582 $(SED) -e "s|%OCTAVE_CONF_DEFS%|\"${UGLY_DEFS}\"|" > $@-t | |
583 $(simple_move_if_change_rule) | |
584 endef | |
585 | |
586 define do_subst_default_vals | |
587 echo "making $@ from $<" | |
588 $(SED) < $< > $@-t \ | |
589 -e "s|%OCTAVE_ARCHLIBDIR%|\"${archlibdir}\"|" \ | |
590 -e "s|%OCTAVE_BINDIR%|\"${bindir}\"|" \ | |
591 -e "s|%OCTAVE_CANONICAL_HOST_TYPE%|\"${canonical_host_type}\"|" \ | |
592 -e "s|%OCTAVE_DATADIR%|\"${datadir}\"|" \ | |
593 -e "s|%OCTAVE_DATAROOTDIR%|\"${datarootdir}\"|" \ | |
594 -e "s|%OCTAVE_DEFAULT_PAGER%|\"${DEFAULT_PAGER}\"|" \ | |
595 -e "s|%OCTAVE_DOC_CACHE_FILE%|\"${doc_cache_file}\"|" \ | |
596 -e "s|%OCTAVE_EXEC_PREFIX%|\"${exec_prefix}\"|" \ | |
597 -e "s|%OCTAVE_FCNFILEDIR%|\"${fcnfiledir}\"|" \ | |
598 -e "s|%OCTAVE_IMAGEDIR%|\"${imagedir}\"|" \ | |
599 -e "s|%OCTAVE_INCLUDEDIR%|\"${includedir}\"|" \ | |
600 -e "s|%OCTAVE_INFODIR%|\"${infodir}\"|" \ | |
601 -e "s|%OCTAVE_INFOFILE%|\"${infofile}\"|" \ | |
602 -e "s|%OCTAVE_LIBDIR%|\"${libdir}\"|" \ | |
603 -e "s|%OCTAVE_LIBEXECDIR%|\"${libexecdir}\"|" \ | |
604 -e "s|%OCTAVE_LOCALAPIFCNFILEDIR%|\"${localapifcnfiledir}\"|" \ | |
605 -e "s|%OCTAVE_LOCALAPIOCTFILEDIR%|\"${localapioctfiledir}\"|" \ | |
606 -e "s|%OCTAVE_LOCALARCHLIBDIR%|\"${localarchlibdir}\"|" \ | |
607 -e "s|%OCTAVE_LOCALFCNFILEDIR%|\"${localfcnfiledir}\"|" \ | |
608 -e "s|%OCTAVE_LOCALOCTFILEDIR%|\"${localoctfiledir}\"|" \ | |
609 -e "s|%OCTAVE_LOCALSTARTUPFILEDIR%|\"${localstartupfiledir}\"|" \ | |
610 -e "s|%OCTAVE_LOCALAPIARCHLIBDIR%|\"${localapiarchlibdir}\"|" \ | |
611 -e "s|%OCTAVE_LOCALVERARCHLIBDIR%|\"${localverarchlibdir}\"|" \ | |
612 -e "s|%OCTAVE_LOCALVERFCNFILEDIR%|\"${localverfcnfiledir}\"|" \ | |
613 -e "s|%OCTAVE_LOCALVEROCTFILEDIR%|\"${localveroctfiledir}\"|" \ | |
614 -e "s|%OCTAVE_MAN1DIR%|\"${man1dir}\"|" \ | |
615 -e "s|%OCTAVE_MAN1EXT%|\"${man1ext}\"|" \ | |
616 -e "s|%OCTAVE_MANDIR%|\"${mandir}\"|" \ | |
617 -e "s|%OCTAVE_OCTFILEDIR%|\"${octfiledir}\"|" \ | |
618 -e "s|%OCTAVE_OCTETCDIR%|\"${octetcdir}\"|" \ | |
619 -e "s|%OCTAVE_OCTINCLUDEDIR%|\"${octincludedir}\"|" \ | |
620 -e "s|%OCTAVE_OCTLIBDIR%|\"${octlibdir}\"|" \ | |
621 -e "s|%OCTAVE_STARTUPFILEDIR%|\"${startupfiledir}\"|" \ | |
622 -e "s|%OCTAVE_PREFIX%|\"${prefix}\"|" \ | |
623 -e "s|%OCTAVE_API_VERSION%|\"${api_version}\"|" \ | |
624 -e "s|%OCTAVE_RELEASE%|\"${OCTAVE_RELEASE}\"|" \ | |
625 -e "s|%OCTAVE_VERSION%|\"${version}\"|" | |
626 $(simple_move_if_change_rule) | |
627 endef | |
628 | |
629 define do_subst_script_vals | |
630 echo "making $@ from $<" | |
631 $(SED) < $< \ | |
632 -e "s|%AWK%|${AWK}|g" \ | |
633 -e "s|%FIND%|${FIND}|g" \ | |
634 -e "s|%SED%|${SED}|g" \ | |
635 -e "s|%library_path_var%|${library_path_var}|g" \ | |
636 -e "s|%liboctinterp%|${SHLPRE}octinterp.${SHLEXT}|g" \ | |
637 -e "s|%liboctave%|${SHLPRE}octave.${SHLEXT}|g" \ | |
638 -e "s|%libcruft%|${SHLPRE}cruft.${SHLEXT}|g" \ | |
639 -e "s|%ldpreloadsep%|${ldpreloadsep}|g" \ | |
640 -e "s|%srcdir%|${srcdir}|" \ | |
641 -e "s|%top_srcdir%|${top_srcdir}|" \ | |
642 -e "s|%abs_top_srcdir%|${abs_top_srcdir}|" \ | |
643 -e "s|%builddir%|$(shell pwd)|" > $@-t | |
644 $(simple_move_if_change_rule) | |
645 endef | |
646 | |
647 define do_script_install | |
648 $(top_srcdir)/build-aux/mkinstalldirs $(DESTDIR)$(fcnfiledir)/$(script_sub_dir) | |
649 for f in $(FCN_FILES); do \ | |
650 fbase=`basename $$f`; \ | |
651 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$fbase; \ | |
652 $(INSTALL_DATA) $$f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$fbase; \ | |
653 done | |
654 $(top_srcdir)/mkpkgadd $(DESTDIR)$(fcnfiledir)/$(script_sub_dir) > $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t | |
655 if [ -n "`cat $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t`" ]; then \ | |
656 $(INSTALL_DATA) $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD ; \ | |
657 else \ | |
658 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t ; \ | |
659 fi | |
660 endef | |
661 | |
662 define do_script_uninstall | |
663 for f in $(FCN_FILES_NO_DIR); \ | |
664 do rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$f; \ | |
665 done | |
666 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD | |
667 -rmdir $(DESTDIR)$(fcnfiledir)/$(script_sub_dir) | |
668 endef |