annotate libinterp/Makefile.am @ 16892:68fc671a9339

maint: Collapse interpfcn and interpfcn-core directories into corefcn directory. * libgui/src/module.mk: Remove -I references to interp-core, interpfcn, add reference to corefcn. * libinterp/Makefile.am: Remove -I references to interp-core, interpfcn, add reference to corefcn. * libinterp/corefcn/module.mk: Add files from interp-core, interpfcn to build system. Copy over special rules from module.mk files in interp-core andd interpfcn. * src/Makefile.am: Replace references to interp-core, interpfcn with those to corefcn. * libinterp/corefcn/Cell.cc, libinterp/corefcn/Cell.h, libinterp/corefcn/action-container.h, libinterp/corefcn/c-file-ptr-stream.cc, libinterp/corefcn/c-file-ptr-stream.h, libinterp/corefcn/comment-list.cc, libinterp/corefcn/comment-list.h, libinterp/corefcn/cutils.c, libinterp/corefcn/cutils.h, libinterp/corefcn/data.cc, libinterp/corefcn/data.h, libinterp/corefcn/debug.cc, libinterp/corefcn/debug.h, libinterp/corefcn/defaults.cc, libinterp/corefcn/defaults.in.h, libinterp/corefcn/defun-dld.h, libinterp/corefcn/defun-int.h, libinterp/corefcn/defun.cc, libinterp/corefcn/defun.h, libinterp/corefcn/dirfns.cc, libinterp/corefcn/dirfns.h, libinterp/corefcn/display.cc, libinterp/corefcn/display.h, libinterp/corefcn/dynamic-ld.cc, libinterp/corefcn/dynamic-ld.h, libinterp/corefcn/error.cc, libinterp/corefcn/error.h, libinterp/corefcn/event-queue.h, libinterp/corefcn/file-io.cc, libinterp/corefcn/file-io.h, libinterp/corefcn/gl-render.cc, libinterp/corefcn/gl-render.h, libinterp/corefcn/gl2ps-renderer.cc, libinterp/corefcn/gl2ps-renderer.h, libinterp/corefcn/gl2ps.c, libinterp/corefcn/gl2ps.h, libinterp/corefcn/graphics.cc, libinterp/corefcn/graphics.in.h, libinterp/corefcn/gripes.cc, libinterp/corefcn/gripes.h, libinterp/corefcn/help.cc, libinterp/corefcn/help.h, libinterp/corefcn/hook-fcn.cc, libinterp/corefcn/hook-fcn.h, libinterp/corefcn/input.cc, libinterp/corefcn/input.h, libinterp/corefcn/jit-ir.cc, libinterp/corefcn/jit-ir.h, libinterp/corefcn/jit-typeinfo.cc, libinterp/corefcn/jit-typeinfo.h, libinterp/corefcn/jit-util.cc, libinterp/corefcn/jit-util.h, libinterp/corefcn/load-path.cc, libinterp/corefcn/load-path.h, libinterp/corefcn/load-save.cc, libinterp/corefcn/load-save.h, libinterp/corefcn/ls-ascii-helper.cc, libinterp/corefcn/ls-ascii-helper.h, libinterp/corefcn/ls-hdf5.cc, libinterp/corefcn/ls-hdf5.h, libinterp/corefcn/ls-mat-ascii.cc, libinterp/corefcn/ls-mat-ascii.h, libinterp/corefcn/ls-mat4.cc, libinterp/corefcn/ls-mat4.h, libinterp/corefcn/ls-mat5.cc, libinterp/corefcn/ls-mat5.h, libinterp/corefcn/ls-oct-ascii.cc, libinterp/corefcn/ls-oct-ascii.h, libinterp/corefcn/ls-oct-binary.cc, libinterp/corefcn/ls-oct-binary.h, libinterp/corefcn/ls-utils.cc, libinterp/corefcn/ls-utils.h, libinterp/corefcn/matherr.c, libinterp/corefcn/mex.cc, libinterp/corefcn/mex.h, libinterp/corefcn/mexproto.h, libinterp/corefcn/mxarray.in.h, libinterp/corefcn/oct-errno.h, libinterp/corefcn/oct-errno.in.cc, libinterp/corefcn/oct-fstrm.cc, libinterp/corefcn/oct-fstrm.h, libinterp/corefcn/oct-hdf5.h, libinterp/corefcn/oct-hist.cc, libinterp/corefcn/oct-hist.h, libinterp/corefcn/oct-iostrm.cc, libinterp/corefcn/oct-iostrm.h, libinterp/corefcn/oct-lvalue.cc, libinterp/corefcn/oct-lvalue.h, libinterp/corefcn/oct-map.cc, libinterp/corefcn/oct-map.h, libinterp/corefcn/oct-obj.cc, libinterp/corefcn/oct-obj.h, libinterp/corefcn/oct-prcstrm.cc, libinterp/corefcn/oct-prcstrm.h, libinterp/corefcn/oct-procbuf.cc, libinterp/corefcn/oct-procbuf.h, libinterp/corefcn/oct-stdstrm.h, libinterp/corefcn/oct-stream.cc, libinterp/corefcn/oct-stream.h, libinterp/corefcn/oct-strstrm.cc, libinterp/corefcn/oct-strstrm.h, libinterp/corefcn/oct.h, libinterp/corefcn/octave-link.cc, libinterp/corefcn/octave-link.h, libinterp/corefcn/pager.cc, libinterp/corefcn/pager.h, libinterp/corefcn/pr-output.cc, libinterp/corefcn/pr-output.h, libinterp/corefcn/procstream.cc, libinterp/corefcn/procstream.h, libinterp/corefcn/profiler.cc, libinterp/corefcn/profiler.h, libinterp/corefcn/pt-jit.cc, libinterp/corefcn/pt-jit.h, libinterp/corefcn/sighandlers.cc, libinterp/corefcn/sighandlers.h, libinterp/corefcn/siglist.c, libinterp/corefcn/siglist.h, libinterp/corefcn/sparse-xdiv.cc, libinterp/corefcn/sparse-xdiv.h, libinterp/corefcn/sparse-xpow.cc, libinterp/corefcn/sparse-xpow.h, libinterp/corefcn/symtab.cc, libinterp/corefcn/symtab.h, libinterp/corefcn/sysdep.cc, libinterp/corefcn/sysdep.h, libinterp/corefcn/toplev.cc, libinterp/corefcn/toplev.h, libinterp/corefcn/txt-eng-ft.cc, libinterp/corefcn/txt-eng-ft.h, libinterp/corefcn/txt-eng.h, libinterp/corefcn/unwind-prot.cc, libinterp/corefcn/unwind-prot.h, libinterp/corefcn/utils.cc, libinterp/corefcn/utils.h, libinterp/corefcn/variables.cc, libinterp/corefcn/variables.h, libinterp/corefcn/workspace-element.h, libinterp/corefcn/xdiv.cc, libinterp/corefcn/xdiv.h, libinterp/corefcn/xgl2ps.c, libinterp/corefcn/xnorm.cc, libinterp/corefcn/xnorm.h, libinterp/corefcn/xpow.cc, libinterp/corefcn/xpow.h, libinterp/corefcn/zfstream.cc, libinterp/corefcn/zfstream.h: Files moved from interp-core and interpfcn directories. * libinterp/interp-core/Cell.cc, libinterp/interp-core/Cell.h, libinterp/interp-core/action-container.h, libinterp/interp-core/c-file-ptr-stream.cc, libinterp/interp-core/c-file-ptr-stream.h, libinterp/interp-core/comment-list.cc, libinterp/interp-core/comment-list.h, libinterp/interp-core/cutils.c, libinterp/interp-core/cutils.h, libinterp/interp-core/defun-dld.h, libinterp/interp-core/defun-int.h, libinterp/interp-core/display.cc, libinterp/interp-core/display.h, libinterp/interp-core/dynamic-ld.cc, libinterp/interp-core/dynamic-ld.h, libinterp/interp-core/event-queue.h, libinterp/interp-core/gl-render.cc, libinterp/interp-core/gl-render.h, libinterp/interp-core/gl2ps-renderer.cc, libinterp/interp-core/gl2ps-renderer.h, libinterp/interp-core/gl2ps.c, libinterp/interp-core/gl2ps.h, libinterp/interp-core/gripes.cc, libinterp/interp-core/gripes.h, libinterp/interp-core/jit-ir.cc, libinterp/interp-core/jit-ir.h, libinterp/interp-core/jit-typeinfo.cc, libinterp/interp-core/jit-typeinfo.h, libinterp/interp-core/jit-util.cc, libinterp/interp-core/jit-util.h, libinterp/interp-core/ls-ascii-helper.cc, libinterp/interp-core/ls-ascii-helper.h, libinterp/interp-core/ls-hdf5.cc, libinterp/interp-core/ls-hdf5.h, libinterp/interp-core/ls-mat-ascii.cc, libinterp/interp-core/ls-mat-ascii.h, libinterp/interp-core/ls-mat4.cc, libinterp/interp-core/ls-mat4.h, libinterp/interp-core/ls-mat5.cc, libinterp/interp-core/ls-mat5.h, libinterp/interp-core/ls-oct-binary.cc, libinterp/interp-core/ls-oct-binary.h, libinterp/interp-core/ls-utils.cc, libinterp/interp-core/ls-utils.h, libinterp/interp-core/matherr.c, libinterp/interp-core/mex.cc, libinterp/interp-core/mex.h, libinterp/interp-core/mexproto.h, libinterp/interp-core/module.mk, libinterp/interp-core/mxarray.in.h, libinterp/interp-core/oct-errno.h, libinterp/interp-core/oct-errno.in.cc, libinterp/interp-core/oct-fstrm.cc, libinterp/interp-core/oct-fstrm.h, libinterp/interp-core/oct-hdf5.h, libinterp/interp-core/oct-iostrm.cc, libinterp/interp-core/oct-iostrm.h, libinterp/interp-core/oct-lvalue.cc, libinterp/interp-core/oct-lvalue.h, libinterp/interp-core/oct-map.cc, libinterp/interp-core/oct-map.h, libinterp/interp-core/oct-obj.cc, libinterp/interp-core/oct-obj.h, libinterp/interp-core/oct-prcstrm.cc, libinterp/interp-core/oct-prcstrm.h, libinterp/interp-core/oct-procbuf.cc, libinterp/interp-core/oct-procbuf.h, libinterp/interp-core/oct-stdstrm.h, libinterp/interp-core/oct-stream.cc, libinterp/interp-core/oct-stream.h, libinterp/interp-core/oct-strstrm.cc, libinterp/interp-core/oct-strstrm.h, libinterp/interp-core/oct.h, libinterp/interp-core/procstream.cc, libinterp/interp-core/procstream.h, libinterp/interp-core/pt-jit.cc, libinterp/interp-core/pt-jit.h, libinterp/interp-core/siglist.c, libinterp/interp-core/siglist.h, libinterp/interp-core/sparse-xdiv.cc, libinterp/interp-core/sparse-xdiv.h, libinterp/interp-core/sparse-xpow.cc, libinterp/interp-core/sparse-xpow.h, libinterp/interp-core/txt-eng-ft.cc, libinterp/interp-core/txt-eng-ft.h, libinterp/interp-core/txt-eng.h, libinterp/interp-core/unwind-prot.cc, libinterp/interp-core/unwind-prot.h, libinterp/interp-core/xdiv.cc, libinterp/interp-core/xdiv.h, libinterp/interp-core/xgl2ps.c, libinterp/interp-core/xnorm.cc, libinterp/interp-core/xnorm.h, libinterp/interp-core/xpow.cc, libinterp/interp-core/xpow.h, libinterp/interp-core/zfstream.cc, libinterp/interp-core/zfstream.h, libinterp/interpfcn/data.cc, libinterp/interpfcn/data.h, libinterp/interpfcn/debug.cc, libinterp/interpfcn/debug.h, libinterp/interpfcn/defaults.cc, libinterp/interpfcn/defaults.in.h, libinterp/interpfcn/defun.cc, libinterp/interpfcn/defun.h, libinterp/interpfcn/dirfns.cc, libinterp/interpfcn/dirfns.h, libinterp/interpfcn/error.cc, libinterp/interpfcn/error.h, libinterp/interpfcn/file-io.cc, libinterp/interpfcn/file-io.h, libinterp/interpfcn/graphics.cc, libinterp/interpfcn/graphics.in.h, libinterp/interpfcn/help.cc, libinterp/interpfcn/help.h, libinterp/interpfcn/hook-fcn.cc, libinterp/interpfcn/hook-fcn.h, libinterp/interpfcn/input.cc, libinterp/interpfcn/input.h, libinterp/interpfcn/load-path.cc, libinterp/interpfcn/load-path.h, libinterp/interpfcn/load-save.cc, libinterp/interpfcn/load-save.h, libinterp/interpfcn/ls-oct-ascii.cc, libinterp/interpfcn/ls-oct-ascii.h, libinterp/interpfcn/module.mk, libinterp/interpfcn/oct-hist.cc, libinterp/interpfcn/oct-hist.h, libinterp/interpfcn/octave-link.cc, libinterp/interpfcn/octave-link.h, libinterp/interpfcn/pager.cc, libinterp/interpfcn/pager.h, libinterp/interpfcn/pr-output.cc, libinterp/interpfcn/pr-output.h, libinterp/interpfcn/profiler.cc, libinterp/interpfcn/profiler.h, libinterp/interpfcn/sighandlers.cc, libinterp/interpfcn/sighandlers.h, libinterp/interpfcn/symtab.cc, libinterp/interpfcn/symtab.h, libinterp/interpfcn/sysdep.cc, libinterp/interpfcn/sysdep.h, libinterp/interpfcn/toplev.cc, libinterp/interpfcn/toplev.h, libinterp/interpfcn/utils.cc, libinterp/interpfcn/utils.h, libinterp/interpfcn/variables.cc, libinterp/interpfcn/variables.h, libinterp/interpfcn/workspace-element.h: deleted files.
author Rik <rik@octave.org>
date Wed, 03 Jul 2013 17:43:48 -0700
parents 7612d75a559b
children 498b2dd1bd56 090145ad5b4b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15269
b42167e9d805 maint: Update Makefile.am comments to refer to Octave (program) rather than octave (command).
Rik <rik@octave.org>
parents: 15203
diff changeset
1 # Makefile for Octave's libinterp directory
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 #
14138
72c96de7a403 maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents: 14023
diff changeset
3 # Copyright (C) 1993-2012 John W. Eaton
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 #
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 # This file is part of Octave.
13141
e81ddf9cacd5 maint: untabify and remove trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents: 13024
diff changeset
6 #
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 # Octave is free software; you can redistribute it and/or modify it
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 # under the terms of the GNU General Public License as published by the
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 # Free Software Foundation; either version 3 of the License, or (at
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 # your option) any later version.
13141
e81ddf9cacd5 maint: untabify and remove trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents: 13024
diff changeset
11 #
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 # Octave is distributed in the hope that it will be useful, but WITHOUT
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 # for more details.
13141
e81ddf9cacd5 maint: untabify and remove trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents: 13024
diff changeset
16 #
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 # You should have received a copy of the GNU General Public License
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 # along with Octave; see the file COPYING. If not, see
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 # <http://www.gnu.org/licenses/>.
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20
12733
b67c2d580a25 maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents: 12730
diff changeset
21 include $(top_srcdir)/build-aux/common.mk
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22
15132
3e5b00d964ad Use $(top_builddir)/libgnu for parallelism with $(top_srcdir)/libgnu
Rik <rik@octave.org>
parents: 15131
diff changeset
23 AUTOMAKE_OPTIONS = subdir-objects
3e5b00d964ad Use $(top_builddir)/libgnu for parallelism with $(top_srcdir)/libgnu
Rik <rik@octave.org>
parents: 15131
diff changeset
24
14397
670feb71afde maint: Move @CPPFLAGS@ to end of AM_CPPFLAGS lists in Makefiles.
John W. Eaton <jwe@octave.org>
parents: 14348
diff changeset
25 ## Search local directories before those specified by the user.
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 AM_CPPFLAGS = \
15271
648dabbb4c6b build: Refactor liboctave into multiple subdirectories. Move libcruft into liboctave.
Rik <rik@octave.org>
parents: 15269
diff changeset
27 -I$(top_srcdir)/liboctave/cruft/misc \
15278
f4b5304ee451 build: Remove unnecessary -I includes from AM_CPPFLAGS.
Rik <rik@octave.org>
parents: 15271
diff changeset
28 -I$(top_srcdir)/liboctave/array \
f4b5304ee451 build: Remove unnecessary -I includes from AM_CPPFLAGS.
Rik <rik@octave.org>
parents: 15271
diff changeset
29 -I$(top_builddir)/liboctave/numeric -I$(top_srcdir)/liboctave/numeric \
f4b5304ee451 build: Remove unnecessary -I includes from AM_CPPFLAGS.
Rik <rik@octave.org>
parents: 15271
diff changeset
30 -I$(top_builddir)/liboctave/operators -I$(top_srcdir)/liboctave/operators \
f4b5304ee451 build: Remove unnecessary -I includes from AM_CPPFLAGS.
Rik <rik@octave.org>
parents: 15271
diff changeset
31 -I$(top_srcdir)/liboctave/system \
f4b5304ee451 build: Remove unnecessary -I includes from AM_CPPFLAGS.
Rik <rik@octave.org>
parents: 15271
diff changeset
32 -I$(top_srcdir)/liboctave/util \
15174
f3a5338aaa01 build: Remove unneeded -Ioctave-value, -Ioperators from AM_CPPFLAGS.
Rik <rik@octave.org>
parents: 15156
diff changeset
33 -I$(srcdir)/octave-value \
f3a5338aaa01 build: Remove unneeded -Ioctave-value, -Ioperators from AM_CPPFLAGS.
Rik <rik@octave.org>
parents: 15156
diff changeset
34 -I$(srcdir)/operators \
15096
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 15088
diff changeset
35 -Iparse-tree -I$(srcdir)/parse-tree \
16892
68fc671a9339 maint: Collapse interpfcn and interpfcn-core directories into corefcn directory.
Rik <rik@octave.org>
parents: 16321
diff changeset
36 -Icorefcn -I$(srcdir)/corefcn \
15132
3e5b00d964ad Use $(top_builddir)/libgnu for parallelism with $(top_srcdir)/libgnu
Rik <rik@octave.org>
parents: 15131
diff changeset
37 -I$(top_builddir)/libgnu -I$(top_srcdir)/libgnu
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
38
15363
482d92904aa4 don't use WARN_CXXFLAGS for qterminal library
John W. Eaton <jwe@octave.org>
parents: 15281
diff changeset
39 AM_CFLAGS += $(WARN_CFLAGS)
482d92904aa4 don't use WARN_CXXFLAGS for qterminal library
John W. Eaton <jwe@octave.org>
parents: 15281
diff changeset
40
482d92904aa4 don't use WARN_CXXFLAGS for qterminal library
John W. Eaton <jwe@octave.org>
parents: 15281
diff changeset
41 AM_CXXFLAGS += $(WARN_CXXFLAGS)
482d92904aa4 don't use WARN_CXXFLAGS for qterminal library
John W. Eaton <jwe@octave.org>
parents: 15281
diff changeset
42
12727
40b16bb69fec maint: Don't distribute files in tarball which must be re-built for each installation
Rik <octave@nomad.inbox5.com>
parents: 12720
diff changeset
43 octlib_LTLIBRARIES = liboctinterp.la
40b16bb69fec maint: Don't distribute files in tarball which must be re-built for each installation
Rik <octave@nomad.inbox5.com>
parents: 12720
diff changeset
44
13141
e81ddf9cacd5 maint: untabify and remove trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents: 13024
diff changeset
45 ## Order matters here. Leave builtins.cc last, because it depends on
9906
8d20fb66a0dc more automake fixes
John W. Eaton <jwe@octave.org>
parents: 9864
diff changeset
46 ## $(DEF_FILES), and building those requires all the sources
9911
ac7606d51a3d src/Makefile.in (BUILT_SOURCES): include graphics-props.cc in the list
John W. Eaton <jwe@octave.org>
parents: 9907
diff changeset
47 ## (except builtins.cc) to be available.
9906
8d20fb66a0dc more automake fixes
John W. Eaton <jwe@octave.org>
parents: 9864
diff changeset
48 BUILT_SOURCES = \
16892
68fc671a9339 maint: Collapse interpfcn and interpfcn-core directories into corefcn directory.
Rik <rik@octave.org>
parents: 16321
diff changeset
49 corefcn/mxarray.h \
68fc671a9339 maint: Collapse interpfcn and interpfcn-core directories into corefcn directory.
Rik <rik@octave.org>
parents: 16321
diff changeset
50 corefcn/oct-errno.cc \
68fc671a9339 maint: Collapse interpfcn and interpfcn-core directories into corefcn directory.
Rik <rik@octave.org>
parents: 16321
diff changeset
51 corefcn/defaults.h \
68fc671a9339 maint: Collapse interpfcn and interpfcn-core directories into corefcn directory.
Rik <rik@octave.org>
parents: 16321
diff changeset
52 corefcn/graphics-props.cc \
68fc671a9339 maint: Collapse interpfcn and interpfcn-core directories into corefcn directory.
Rik <rik@octave.org>
parents: 16321
diff changeset
53 corefcn/graphics.h \
15096
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 15088
diff changeset
54 operators/ops.cc \
15085
28f5f4a4a80a maint: Move parser code and rules to parse-tree/ directory
Rik <rik@octave.org>
parents: 15083
diff changeset
55 parse-tree/lex.cc \
15096
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 15088
diff changeset
56 parse-tree/oct-gperf.h \
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 15088
diff changeset
57 parse-tree/oct-parse.cc \
9906
8d20fb66a0dc more automake fixes
John W. Eaton <jwe@octave.org>
parents: 9864
diff changeset
58 oct-conf.h \
16170
2a4f83826024 new way to test for features in Octave scripts
John W. Eaton <jwe@octave.org>
parents: 16156
diff changeset
59 oct-conf-features.h \
9906
8d20fb66a0dc more automake fixes
John W. Eaton <jwe@octave.org>
parents: 9864
diff changeset
60 version.h \
15463
6a05cad5b694 Fix first-pass compiling which creates bad *.df files (bug #37461)
Rik <rik@octave.org>
parents: 15457
diff changeset
61 builtin-defun-decls.h \
9906
8d20fb66a0dc more automake fixes
John W. Eaton <jwe@octave.org>
parents: 9864
diff changeset
62 builtins.cc
8d20fb66a0dc more automake fixes
John W. Eaton <jwe@octave.org>
parents: 9864
diff changeset
63
8d20fb66a0dc more automake fixes
John W. Eaton <jwe@octave.org>
parents: 9864
diff changeset
64 BUILT_DISTFILES = \
15096
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 15088
diff changeset
65 parse-tree/oct-gperf.h \
16174
39096b290a2f check syntax used to enable bison push/pull parser
John W. Eaton <jwe@octave.org>
parents: 16170
diff changeset
66 parse-tree/oct-parse.h \
39096b290a2f check syntax used to enable bison push/pull parser
John W. Eaton <jwe@octave.org>
parents: 16170
diff changeset
67 parse-tree/oct-parse.yy
9906
8d20fb66a0dc more automake fixes
John W. Eaton <jwe@octave.org>
parents: 9864
diff changeset
68
12727
40b16bb69fec maint: Don't distribute files in tarball which must be re-built for each installation
Rik <octave@nomad.inbox5.com>
parents: 12720
diff changeset
69 ## Files that are created during build process and installed,
40b16bb69fec maint: Don't distribute files in tarball which must be re-built for each installation
Rik <octave@nomad.inbox5.com>
parents: 12720
diff changeset
70 ## BUT not distributed in tarball.
9906
8d20fb66a0dc more automake fixes
John W. Eaton <jwe@octave.org>
parents: 9864
diff changeset
71 BUILT_NODISTFILES = \
16892
68fc671a9339 maint: Collapse interpfcn and interpfcn-core directories into corefcn directory.
Rik <rik@octave.org>
parents: 16321
diff changeset
72 corefcn/mxarray.h \
68fc671a9339 maint: Collapse interpfcn and interpfcn-core directories into corefcn directory.
Rik <rik@octave.org>
parents: 16321
diff changeset
73 corefcn/oct-errno.cc \
68fc671a9339 maint: Collapse interpfcn and interpfcn-core directories into corefcn directory.
Rik <rik@octave.org>
parents: 16321
diff changeset
74 corefcn/defaults.h \
68fc671a9339 maint: Collapse interpfcn and interpfcn-core directories into corefcn directory.
Rik <rik@octave.org>
parents: 16321
diff changeset
75 corefcn/graphics.h \
15418
60090630cb76 generate declarations for all built-in DEFUN functions
John W. Eaton <jwe@octave.org>
parents: 15417
diff changeset
76 builtin-defun-decls.h \
15096
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 15088
diff changeset
77 operators/ops.cc \
9906
8d20fb66a0dc more automake fixes
John W. Eaton <jwe@octave.org>
parents: 9864
diff changeset
78 oct-conf.h \
16170
2a4f83826024 new way to test for features in Octave scripts
John W. Eaton <jwe@octave.org>
parents: 16156
diff changeset
79 oct-conf-features.h \
9906
8d20fb66a0dc more automake fixes
John W. Eaton <jwe@octave.org>
parents: 9864
diff changeset
80 version.h \
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
81 $(OPT_HANDLERS) \
9906
8d20fb66a0dc more automake fixes
John W. Eaton <jwe@octave.org>
parents: 9864
diff changeset
82 $(OPT_INC) \
12720
ccfe03bebeba src/Makefile.am: Fixes to get 'make dist' working
Rik <octave@nomad.inbox5.com>
parents: 12717
diff changeset
83 $(ALL_DEF_FILES) \
9906
8d20fb66a0dc more automake fixes
John W. Eaton <jwe@octave.org>
parents: 9864
diff changeset
84 builtins.cc
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
85
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
86 EXTRA_DIST = \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
87 Makefile.in \
9927
ecbf1577200c Distribute DOCSTRINGS to prevent unnecessary documentation rebuild
Rik <rdrider0-list@yahoo.com>
parents: 9917
diff changeset
88 DOCSTRINGS \
16182
d200b2b184c1 fix typo
John W. Eaton <jwe@octave.org>
parents: 16174
diff changeset
89 config-features.sh \
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
90 find-defun-files.sh \
14649
5fa6a41d4fbe build: Use Perl to create DOCSTRINGS in src/ directory.
Rik <octave@nomad.inbox5.com>
parents: 14630
diff changeset
91 gendoc.pl \
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
92 genprops.awk \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
93 mk-errno-list \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
94 mk-pkg-add \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
95 mkbuiltins \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
96 mkdefs \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
97 mkops \
14547
1bf39e944e43 rename .in.h and .in.cc files to .h.in and .cc.in
John W. Eaton <jwe@octave.org>
parents: 14432
diff changeset
98 oct-conf.in.h \
16184
05313332d541 Fix 'make dist' failing for oct-parse-in.yy.
Rik <rik@octave.org>
parents: 16182
diff changeset
99 parse-tree/oct-parse.in.yy \
14547
1bf39e944e43 rename .in.h and .in.cc files to .h.in and .cc.in
John W. Eaton <jwe@octave.org>
parents: 14432
diff changeset
100 version.in.h \
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
101 $(BUILT_DISTFILES)
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
102
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
103 octinclude_HEADERS = \
16892
68fc671a9339 maint: Collapse interpfcn and interpfcn-core directories into corefcn directory.
Rik <rik@octave.org>
parents: 16321
diff changeset
104 corefcn/graphics-props.cc \
15096
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 15088
diff changeset
105 parse-tree/oct-gperf.h \
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 15088
diff changeset
106 builtins.h \
15418
60090630cb76 generate declarations for all built-in DEFUN functions
John W. Eaton <jwe@octave.org>
parents: 15417
diff changeset
107 builtin-defun-decls.h \
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
108 octave.h \
15281
03ef3a183129 build: Use INC rather than INCLUDES for consistent naming in libinterp Makefile.am.
Rik <rik@octave.org>
parents: 15278
diff changeset
109 $(OCTAVE_VALUE_INC) \
03ef3a183129 build: Use INC rather than INCLUDES for consistent naming in libinterp Makefile.am.
Rik <rik@octave.org>
parents: 15278
diff changeset
110 $(PARSE_TREE_INC) \
16321
7612d75a559b distribute parser header files omitted in changeset faaf60aa457c
John W. Eaton <jwe@octave.org>
parents: 16298
diff changeset
111 $(PARSER_INC) \
15281
03ef3a183129 build: Use INC rather than INCLUDES for consistent naming in libinterp Makefile.am.
Rik <rik@octave.org>
parents: 15278
diff changeset
112 $(OPERATORS_INC) \
16892
68fc671a9339 maint: Collapse interpfcn and interpfcn-core directories into corefcn directory.
Rik <rik@octave.org>
parents: 16321
diff changeset
113 $(COREFCN_INC)
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
114
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
115 nodist_octinclude_HEADERS = \
16892
68fc671a9339 maint: Collapse interpfcn and interpfcn-core directories into corefcn directory.
Rik <rik@octave.org>
parents: 16321
diff changeset
116 corefcn/mxarray.h \
68fc671a9339 maint: Collapse interpfcn and interpfcn-core directories into corefcn directory.
Rik <rik@octave.org>
parents: 16321
diff changeset
117 corefcn/defaults.h \
68fc671a9339 maint: Collapse interpfcn and interpfcn-core directories into corefcn directory.
Rik <rik@octave.org>
parents: 16321
diff changeset
118 corefcn/graphics.h \
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
119 oct-conf.h \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
120 version.h
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
121
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
122 DIST_SRC = \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
123 octave.cc \
15057
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents: 15051
diff changeset
124 $(OCTAVE_VALUE_SRC) \
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents: 15051
diff changeset
125 $(PARSE_TREE_SRC) \
16298
faaf60aa457c use separate automake convenience library for bison and flex generated files
John W. Eaton <jwe@octave.org>
parents: 16184
diff changeset
126 $(PARSER_SRC) \
15088
60ff2cef569d maint: Move core interpreter files with DEFUNS to interpfcn/ directory
Rik <rik@octave.org>
parents: 15086
diff changeset
127 $(COREFCN_SRC)
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
128
15039
e753177cde93 maint: Move non-dynamically linked functions from DLD-FUNCTIONS/ to corefcn/ directory
Rik <rik@octave.org>
parents: 15016
diff changeset
129 noinst_LTLIBRARIES =
e753177cde93 maint: Move non-dynamically linked functions from DLD-FUNCTIONS/ to corefcn/ directory
Rik <rik@octave.org>
parents: 15016
diff changeset
130
15057
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents: 15051
diff changeset
131 include parse-tree/module.mk
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents: 15051
diff changeset
132 include octave-value/module.mk
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents: 15051
diff changeset
133 include operators/module.mk
46b19589b593 maint: Partition src/ directory with more code in subdirs.
Rik <rik@octave.org>
parents: 15051
diff changeset
134 include template-inst/module.mk
15039
e753177cde93 maint: Move non-dynamically linked functions from DLD-FUNCTIONS/ to corefcn/ directory
Rik <rik@octave.org>
parents: 15016
diff changeset
135 include corefcn/module.mk
15076
000587f92082 rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents: 15075
diff changeset
136 include dldfcn/module.mk
10376
1ed7cc046c52 Makefile.am rules for rebuilding .mk files
John W. Eaton <jwe@octave.org>
parents: 10342
diff changeset
137
15076
000587f92082 rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents: 15075
diff changeset
138 $(srcdir)/dldfcn/module.mk: $(srcdir)/dldfcn/config-module.sh $(srcdir)/dldfcn/config-module.awk $(srcdir)/dldfcn/module-files
000587f92082 rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents: 15075
diff changeset
139 $(srcdir)/dldfcn/config-module.sh $(top_srcdir)
10376
1ed7cc046c52 Makefile.am rules for rebuilding .mk files
John W. Eaton <jwe@octave.org>
parents: 10342
diff changeset
140
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
141 if AMCOND_ENABLE_DYNAMIC_LINKING
15076
000587f92082 rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents: 15075
diff changeset
142 OCT_FILES = $(DLDFCN_LIBS:.la=.oct)
000587f92082 rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents: 15075
diff changeset
143 OCT_STAMP_FILES = $(subst dldfcn/,dldfcn/$(am__leading_dot),$(DLDFCN_LIBS:.la=.oct-stamp))
14295
21572e9bd365 make --disable-dl work again
John W. Eaton <jwe@octave.org>
parents: 14192
diff changeset
144 DLD_LIBOCTINTERP_LIBADD = liboctinterp.la
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
145 else
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
146 OCT_FILES =
12162
c9f42acd84e2 Use Makefile rules based on timestamp files for src/DLD-FUNCTIONS/*.oct
John W. Eaton <jwe@octave.org>
parents: 11576
diff changeset
147 OCT_STAMP_FILES =
14295
21572e9bd365 make --disable-dl work again
John W. Eaton <jwe@octave.org>
parents: 14192
diff changeset
148 DLD_LIBOCTINTERP_LIBADD =
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
149 endif
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
150
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
151 liboctinterp_la_SOURCES = \
15107
03381a36f70d generate convenience libraries for new parse-tree and interpfcn subdirectories
John W. Eaton <jwe@octave.org>
parents: 15100
diff changeset
152 octave.cc \
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
153 $(OPERATORS_SRC) \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
154 $(TEMPLATE_INST_SRC)
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
155
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
156 nodist_liboctinterp_la_SOURCES = \
16892
68fc671a9339 maint: Collapse interpfcn and interpfcn-core directories into corefcn directory.
Rik <rik@octave.org>
parents: 16321
diff changeset
157 corefcn/mxarray.h \
68fc671a9339 maint: Collapse interpfcn and interpfcn-core directories into corefcn directory.
Rik <rik@octave.org>
parents: 16321
diff changeset
158 corefcn/oct-errno.cc \
68fc671a9339 maint: Collapse interpfcn and interpfcn-core directories into corefcn directory.
Rik <rik@octave.org>
parents: 16321
diff changeset
159 corefcn/defaults.h \
68fc671a9339 maint: Collapse interpfcn and interpfcn-core directories into corefcn directory.
Rik <rik@octave.org>
parents: 16321
diff changeset
160 corefcn/graphics.h \
15096
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 15088
diff changeset
161 operators/ops.cc \
15418
60090630cb76 generate declarations for all built-in DEFUN functions
John W. Eaton <jwe@octave.org>
parents: 15417
diff changeset
162 builtin-defun-decls.h \
15096
909a2797935b maint: Move interp source code without DEFUNs to interp-core/ dir.
Rik <rik@octave.org>
parents: 15088
diff changeset
163 builtins.cc \
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
164 oct-conf.h \
16170
2a4f83826024 new way to test for features in Octave scripts
John W. Eaton <jwe@octave.org>
parents: 16156
diff changeset
165 oct-conf-features.h \
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
166 version.h \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
167 $(OPT_INC)
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
168
13010
edc5ec6e949b maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents: 12958
diff changeset
169 liboctinterp_la_CPPFLAGS = @OCTINTERP_DLL_DEFS@ $(AM_CPPFLAGS)
9906
8d20fb66a0dc more automake fixes
John W. Eaton <jwe@octave.org>
parents: 9864
diff changeset
170
13010
edc5ec6e949b maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents: 12958
diff changeset
171 include link-deps.mk
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
172
13022
05534f03377d maint: ensure we always link with local libtool libraries
John W. Eaton <jwe@octave.org>
parents: 13016
diff changeset
173 liboctinterp_la_LIBADD = \
15107
03381a36f70d generate convenience libraries for new parse-tree and interpfcn subdirectories
John W. Eaton <jwe@octave.org>
parents: 15100
diff changeset
174 octave-value/liboctave-value.la \
03381a36f70d generate convenience libraries for new parse-tree and interpfcn subdirectories
John W. Eaton <jwe@octave.org>
parents: 15100
diff changeset
175 parse-tree/libparse-tree.la \
16298
faaf60aa457c use separate automake convenience library for bison and flex generated files
John W. Eaton <jwe@octave.org>
parents: 16184
diff changeset
176 parse-tree/libparser.la \
15107
03381a36f70d generate convenience libraries for new parse-tree and interpfcn subdirectories
John W. Eaton <jwe@octave.org>
parents: 15100
diff changeset
177 corefcn/libcorefcn.la \
15278
f4b5304ee451 build: Remove unnecessary -I includes from AM_CPPFLAGS.
Rik <rik@octave.org>
parents: 15271
diff changeset
178 $(top_builddir)/liboctave/liboctave.la \
13022
05534f03377d maint: ensure we always link with local libtool libraries
John W. Eaton <jwe@octave.org>
parents: 13016
diff changeset
179 $(LIBOCTINTERP_LINK_DEPS)
9816
b1462c588dd5 add -DX_DLL_DEFS to CPPFLAGS
John W. Eaton <jwe@octave.org>
parents: 9798
diff changeset
180
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
181 # Increment these as needed and according to the rules in the libtool manual:
14192
5d5400bd1f62 maint: update library version numbers for release
John W. Eaton <jwe@octave.org>
parents: 14138
diff changeset
182 liboctinterp_current = 1
14348
95c43fc8dbe1 3.6.1 release candidate 0
John W. Eaton <jwe@octave.org>
parents: 14192
diff changeset
183 liboctinterp_revision = 1
12708
e34f2bf7319d maint: implement proper library versioning.
John W. Eaton <jwe@octave.org>
parents: 12218
diff changeset
184 liboctinterp_age = 0
e34f2bf7319d maint: implement proper library versioning.
John W. Eaton <jwe@octave.org>
parents: 12218
diff changeset
185
e34f2bf7319d maint: implement proper library versioning.
John W. Eaton <jwe@octave.org>
parents: 12218
diff changeset
186 liboctinterp_version_info = $(liboctinterp_current):$(liboctinterp_revision):$(liboctinterp_age)
e34f2bf7319d maint: implement proper library versioning.
John W. Eaton <jwe@octave.org>
parents: 12218
diff changeset
187
e34f2bf7319d maint: implement proper library versioning.
John W. Eaton <jwe@octave.org>
parents: 12218
diff changeset
188 liboctinterp_la_LDFLAGS = \
e34f2bf7319d maint: implement proper library versioning.
John W. Eaton <jwe@octave.org>
parents: 12218
diff changeset
189 -version-info $(liboctinterp_version_info) \
e34f2bf7319d maint: implement proper library versioning.
John W. Eaton <jwe@octave.org>
parents: 12218
diff changeset
190 $(NO_UNDEFINED_LDFLAG) \
13010
edc5ec6e949b maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents: 12958
diff changeset
191 -bindir $(bindir) \
edc5ec6e949b maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents: 12958
diff changeset
192 $(LIBOCTINTERP_LINK_OPTS)
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
193
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
194 ## Section for defining and creating DEF_FILES
16174
39096b290a2f check syntax used to enable bison push/pull parser
John W. Eaton <jwe@octave.org>
parents: 16170
diff changeset
195
39096b290a2f check syntax used to enable bison push/pull parser
John W. Eaton <jwe@octave.org>
parents: 16170
diff changeset
196 ULT_DIST_SRC := \
39096b290a2f check syntax used to enable bison push/pull parser
John W. Eaton <jwe@octave.org>
parents: 16170
diff changeset
197 $(filter-out parse-tree/oct-parse.yy, $(DIST_SRC)) parse-tree/oct-parse.in.yy
39096b290a2f check syntax used to enable bison push/pull parser
John W. Eaton <jwe@octave.org>
parents: 16170
diff changeset
198
39096b290a2f check syntax used to enable bison push/pull parser
John W. Eaton <jwe@octave.org>
parents: 16170
diff changeset
199 SRC_DEF_FILES := $(shell $(srcdir)/find-defun-files.sh "$(srcdir)" $(ULT_DIST_SRC))
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
200
15076
000587f92082 rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents: 15075
diff changeset
201 DLDFCN_DEF_FILES = $(DLDFCN_SRC:.cc=.df)
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
202
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
203 ## builtins.cc depends on $(DEF_FILES), so DEF_FILES should only include
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
204 ## .df files that correspond to sources included in liboctave.
13010
edc5ec6e949b maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents: 12958
diff changeset
205 if AMCOND_ENABLE_DYNAMIC_LINKING
edc5ec6e949b maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents: 12958
diff changeset
206 DEF_FILES = $(SRC_DEF_FILES)
edc5ec6e949b maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents: 12958
diff changeset
207 else
15076
000587f92082 rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents: 15075
diff changeset
208 DEF_FILES = $(SRC_DEF_FILES) $(DLDFCN_DEF_FILES)
13010
edc5ec6e949b maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents: 12958
diff changeset
209 endif
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
210
15076
000587f92082 rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents: 15075
diff changeset
211 ALL_DEF_FILES = $(SRC_DEF_FILES) $(DLDFCN_DEF_FILES)
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
212
13010
edc5ec6e949b maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents: 12958
diff changeset
213 $(SRC_DEF_FILES): mkdefs Makefile
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
214
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
215 $(DEF_FILES): $(OPT_HANDLERS) $(OPT_INC)
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
216
15415
15c435992d3c build: Deprecate DLL_CDEFS, CLL_CXXDEFS in Makefiles.
Rik <rik@octave.org>
parents: 15363
diff changeset
217 ## FIXME: The following two variables are deprecated and should be removed
15c435992d3c build: Deprecate DLL_CDEFS, CLL_CXXDEFS in Makefiles.
Rik <rik@octave.org>
parents: 15363
diff changeset
218 ## in Octave version 3.12.
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
219 DLL_CDEFS = @OCTINTERP_DLL_DEFS@
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
220 DLL_CXXDEFS = @OCTINTERP_DLL_DEFS@
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
221
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
222 ## Rule to build a DEF file from a .cc file
15768
a2a2c241f2d5 use JAVA_CPPFLAGS when building .df files.
John W. Eaton <jwe@octave.org>
parents: 15752
diff changeset
223 ##
a2a2c241f2d5 use JAVA_CPPFLAGS when building .df files.
John W. Eaton <jwe@octave.org>
parents: 15752
diff changeset
224 ## FIXME -- This rule should be fixed to avoid using special
a2a2c241f2d5 use JAVA_CPPFLAGS when building .df files.
John W. Eaton <jwe@octave.org>
parents: 15752
diff changeset
225 ## flags like JAVA_CPPFLAGS for every file. How could it be written
a2a2c241f2d5 use JAVA_CPPFLAGS when building .df files.
John W. Eaton <jwe@octave.org>
parents: 15752
diff changeset
226 ## so that it uses octave_value_liboctave_value_la_CPPFLAGS when
a2a2c241f2d5 use JAVA_CPPFLAGS when building .df files.
John W. Eaton <jwe@octave.org>
parents: 15752
diff changeset
227 ## generating the octave-value/*.df files?
a2a2c241f2d5 use JAVA_CPPFLAGS when building .df files.
John W. Eaton <jwe@octave.org>
parents: 15752
diff changeset
228 ##
a2a2c241f2d5 use JAVA_CPPFLAGS when building .df files.
John W. Eaton <jwe@octave.org>
parents: 15752
diff changeset
229 ## FIXME -- Shouldn't the build stop if CPP fails here?
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
230 %.df: %.cc
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
231 $(CXXCPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
15768
a2a2c241f2d5 use JAVA_CPPFLAGS when building .df files.
John W. Eaton <jwe@octave.org>
parents: 15752
diff changeset
232 $(AM_CPPFLAGS) $(JAVA_CPPFLAGS) $(CPPFLAGS) \
a2a2c241f2d5 use JAVA_CPPFLAGS when building .df files.
John W. Eaton <jwe@octave.org>
parents: 15752
diff changeset
233 $(AM_CXXFLAGS) $(CXXFLAGS) \
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
234 -DMAKE_BUILTINS $< | $(srcdir)/mkdefs $(srcdir) $< > $@-t
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
235 mv $@-t $@
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
236
16019
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15924
diff changeset
237 ## Rules to build test files
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15924
diff changeset
238
16174
39096b290a2f check syntax used to enable bison push/pull parser
John W. Eaton <jwe@octave.org>
parents: 16170
diff changeset
239 TST_FILES_SRC := $(shell $(top_srcdir)/build-aux/find-files-with-tests.sh "$(srcdir)" $(ULT_DIST_SRC) $(DLDFCN_SRC))
16019
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15924
diff changeset
240
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15924
diff changeset
241 TST_FILES := $(addsuffix -tst,$(TST_FILES_SRC))
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15924
diff changeset
242
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15924
diff changeset
243 libinterptestsdir := $(octtestsdir)/libinterp
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15924
diff changeset
244
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15924
diff changeset
245 nobase_libinterptests_DATA = $(TST_FILES)
5b2126a8c84f install tests and functions to run them
John W. Eaton <jwe@octave.org>
parents: 15924
diff changeset
246
15203
aa7f4e33c524 override automake .yy.cc rule (bug #36407)
John W. Eaton <jwe@octave.org>
parents: 15195
diff changeset
247 ## Override Automake's rule that forces a .hh extension on us even
aa7f4e33c524 override automake .yy.cc rule (bug #36407)
John W. Eaton <jwe@octave.org>
parents: 15195
diff changeset
248 ## though we don't want it. It would be super awesome if automake
aa7f4e33c524 override automake .yy.cc rule (bug #36407)
John W. Eaton <jwe@octave.org>
parents: 15195
diff changeset
249 ## would allow users to choose the header file extension.
aa7f4e33c524 override automake .yy.cc rule (bug #36407)
John W. Eaton <jwe@octave.org>
parents: 15195
diff changeset
250 .yy.cc:
aa7f4e33c524 override automake .yy.cc rule (bug #36407)
John W. Eaton <jwe@octave.org>
parents: 15195
diff changeset
251 $(am__skipyacc) $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h $*.h y.output $*.output -- $(YACCCOMPILE)
aa7f4e33c524 override automake .yy.cc rule (bug #36407)
John W. Eaton <jwe@octave.org>
parents: 15195
diff changeset
252
13141
e81ddf9cacd5 maint: untabify and remove trailing whitespace from source files
John W. Eaton <jwe@octave.org>
parents: 13024
diff changeset
253 ## Special rules:
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
254 ## Mostly for sources which must be built before rest of compilation.
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
255
15278
f4b5304ee451 build: Remove unnecessary -I includes from AM_CPPFLAGS.
Rik <rik@octave.org>
parents: 15271
diff changeset
256 ## oct-conf.h must depend on Makefile.
f4b5304ee451 build: Remove unnecessary -I includes from AM_CPPFLAGS.
Rik <rik@octave.org>
parents: 15271
diff changeset
257 ## Calling configure may change default/config values.
f4b5304ee451 build: Remove unnecessary -I includes from AM_CPPFLAGS.
Rik <rik@octave.org>
parents: 15271
diff changeset
258 ## However, calling configure will also regenerate the Makefiles from
f4b5304ee451 build: Remove unnecessary -I includes from AM_CPPFLAGS.
Rik <rik@octave.org>
parents: 15271
diff changeset
259 ## Makefile.am and trigger the rules below.
14547
1bf39e944e43 rename .in.h and .in.cc files to .h.in and .cc.in
John W. Eaton <jwe@octave.org>
parents: 14432
diff changeset
260 oct-conf.h: oct-conf.in.h Makefile
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
261 @$(do_subst_config_vals)
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
262
16170
2a4f83826024 new way to test for features in Octave scripts
John W. Eaton <jwe@octave.org>
parents: 16156
diff changeset
263 oct-conf-features.h: $(top_builddir)/config.h config-features.sh
2a4f83826024 new way to test for features in Octave scripts
John W. Eaton <jwe@octave.org>
parents: 16156
diff changeset
264 $(srcdir)/config-features.sh $< > $@-t
2a4f83826024 new way to test for features in Octave scripts
John W. Eaton <jwe@octave.org>
parents: 16156
diff changeset
265 mv $@-t $@
2a4f83826024 new way to test for features in Octave scripts
John W. Eaton <jwe@octave.org>
parents: 16156
diff changeset
266
14547
1bf39e944e43 rename .in.h and .in.cc files to .h.in and .cc.in
John W. Eaton <jwe@octave.org>
parents: 14432
diff changeset
267 version.h: version.in.h Makefile
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
268 $(SED) < $< \
15100
8523df595d42 maint: Add DO NOT EDIT messages to build system for src/*.in.h.
Rik <rik@octave.org>
parents: 15096
diff changeset
269 -e "s|%NO_EDIT_WARNING%|DO NOT EDIT! Generated automatically from $(<F) by Make.|" \
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
270 -e "s|%OCTAVE_API_VERSION_NUMBER%|${OCTAVE_API_VERSION_NUMBER}|" \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
271 -e "s|%OCTAVE_API_VERSION%|\"${OCTAVE_API_VERSION}\"|" \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
272 -e "s|%OCTAVE_COPYRIGHT%|\"${OCTAVE_COPYRIGHT}\"|" \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
273 -e "s|%OCTAVE_RELEASE_DATE%|\"${OCTAVE_RELEASE_DATE}\"|" \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
274 -e "s|%OCTAVE_VERSION%|\"${OCTAVE_VERSION}\"|" > $@-t
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
275 mv $@-t $@
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
276
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
277 builtins.cc: $(DEF_FILES) mkbuiltins
15418
60090630cb76 generate declarations for all built-in DEFUN functions
John W. Eaton <jwe@octave.org>
parents: 15417
diff changeset
278 $(srcdir)/mkbuiltins --source $(DEF_FILES) > $@-t
60090630cb76 generate declarations for all built-in DEFUN functions
John W. Eaton <jwe@octave.org>
parents: 15417
diff changeset
279 mv $@-t $@
60090630cb76 generate declarations for all built-in DEFUN functions
John W. Eaton <jwe@octave.org>
parents: 15417
diff changeset
280
60090630cb76 generate declarations for all built-in DEFUN functions
John W. Eaton <jwe@octave.org>
parents: 15417
diff changeset
281 builtin-defun-decls.h: $(SRC_DEF_FILES) mkbuiltins
60090630cb76 generate declarations for all built-in DEFUN functions
John W. Eaton <jwe@octave.org>
parents: 15417
diff changeset
282 $(srcdir)/mkbuiltins --header $(SRC_DEF_FILES) > $@-t
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
283 mv $@-t $@
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
284
13010
edc5ec6e949b maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents: 12958
diff changeset
285 if AMCOND_ENABLE_DYNAMIC_LINKING
15076
000587f92082 rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents: 15075
diff changeset
286 DLDFCN_PKG_ADD_FILE = dldfcn/PKG_ADD
13010
edc5ec6e949b maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents: 12958
diff changeset
287
15076
000587f92082 rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents: 15075
diff changeset
288 dldfcn/PKG_ADD: $(DLDFCN_DEF_FILES) mk-pkg-add
000587f92082 rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents: 15075
diff changeset
289 $(srcdir)/mk-pkg-add $(DLDFCN_DEF_FILES) > $@-t
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
290 mv $@-t $@
13010
edc5ec6e949b maint: allow --enable-static --disable-dl to work again
John W. Eaton <jwe@octave.org>
parents: 12958
diff changeset
291 endif
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
292
14432
e053d1622f4e build: Don't build DOCSTRINGS files when --disable-docs specified.
Rik <octave@nomad.inbox5.com>
parents: 14398
diff changeset
293 if AMCOND_BUILD_DOCS
14649
5fa6a41d4fbe build: Use Perl to create DOCSTRINGS in src/ directory.
Rik <octave@nomad.inbox5.com>
parents: 14630
diff changeset
294 .DOCSTRINGS: $(ALL_DEF_FILES) gendoc.pl
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
295 if [ "x$(srcdir)" != "x." ] && [ -f $(srcdir)/DOCSTRINGS ] && [ ! -f DOCSTRINGS ]; then \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
296 cp $(srcdir)/DOCSTRINGS DOCSTRINGS; \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
297 touch -r $(srcdir)/DOCSTRINGS DOCSTRINGS; \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
298 fi
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
299 @echo "creating .DOCSTRINGS from .cc source files"
14649
5fa6a41d4fbe build: Use Perl to create DOCSTRINGS in src/ directory.
Rik <octave@nomad.inbox5.com>
parents: 14630
diff changeset
300 @$(PERL) $(srcdir)/gendoc.pl $(ALL_DEF_FILES) > $@
12733
b67c2d580a25 maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents: 12730
diff changeset
301 $(top_srcdir)/build-aux/move-if-change $@ DOCSTRINGS
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
302 touch $@
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
303
15076
000587f92082 rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents: 15075
diff changeset
304 all-local: $(OCT_STAMP_FILES) $(DLDFCN_PKG_ADD_FILE) .DOCSTRINGS
14432
e053d1622f4e build: Don't build DOCSTRINGS files when --disable-docs specified.
Rik <octave@nomad.inbox5.com>
parents: 14398
diff changeset
305 else
15076
000587f92082 rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents: 15075
diff changeset
306 all-local: $(OCT_STAMP_FILES) $(DLDFCN_PKG_ADD_FILE)
14432
e053d1622f4e build: Don't build DOCSTRINGS files when --disable-docs specified.
Rik <octave@nomad.inbox5.com>
parents: 14398
diff changeset
307 endif
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
308
15492
f62c2c57b800 build: do not install DOCSTRINGS when configuring with --disable-docs
Stefan Husmann <stefan-husmann@t-online.de>
parents: 15482
diff changeset
309 if AMCOND_BUILD_DOCS
15470
bf0857c789f4 initialize docstrings for built-in functions from file
John W. Eaton <jwe@octave.org>
parents: 15463
diff changeset
310 install-data-hook: install-oct install-built-in-docstrings
15492
f62c2c57b800 build: do not install DOCSTRINGS when configuring with --disable-docs
Stefan Husmann <stefan-husmann@t-online.de>
parents: 15482
diff changeset
311 else
15796
07231ebb6df3 build: Add rule to uninstall built-in-docstrings and allow distcheck to pass.
Rik <rik@octave.org>
parents: 15768
diff changeset
312 install-data-hook: install-oct uninstall-built-in-docstrings
15492
f62c2c57b800 build: do not install DOCSTRINGS when configuring with --disable-docs
Stefan Husmann <stefan-husmann@t-online.de>
parents: 15482
diff changeset
313 endif
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
314
15796
07231ebb6df3 build: Add rule to uninstall built-in-docstrings and allow distcheck to pass.
Rik <rik@octave.org>
parents: 15768
diff changeset
315 uninstall-local: uninstall-oct uninstall-built-in-docstrings
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
316
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
317 if AMCOND_ENABLE_DYNAMIC_LINKING
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
318 install-oct:
12733
b67c2d580a25 maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents: 12730
diff changeset
319 $(top_srcdir)/build-aux/mkinstalldirs $(DESTDIR)$(octfiledir)
15076
000587f92082 rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents: 15075
diff changeset
320 if [ -n "`cat $(DLDFCN_PKG_ADD_FILE)`" ]; then \
000587f92082 rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents: 15075
diff changeset
321 $(INSTALL_DATA) $(DLDFCN_PKG_ADD_FILE) $(DESTDIR)$(octfiledir)/PKG_ADD; \
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
322 fi
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
323 cd $(DESTDIR)$(octlibdir) && \
15076
000587f92082 rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents: 15075
diff changeset
324 for ltlib in $(DLDFCN_LIBS); do \
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
325 f=`echo $$ltlib | $(SED) 's,.*/,,'`; \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
326 dl=`$(SED) -n -e "s/dlname='\([^']*\)'/\1/p" < $$f`; \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
327 if [ -n "$$dl" ]; then \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
328 $(INSTALL_PROGRAM) $$dl $(DESTDIR)$(octfiledir)/`echo $$f | $(SED) 's,^lib,,; s,\.la$$,.oct,'`; \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
329 else \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
330 echo "error: dlname is empty in $$ltlib!"; \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
331 exit 1; \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
332 fi; \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
333 lnames=`$(SED) -n -e "s/library_names='\([^']*\)'/\1/p" < $$f`; \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
334 if [ -n "$$lnames" ]; then \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
335 rm -f $$f $$lnames $$dl; \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
336 fi \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
337 done
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
338
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
339 uninstall-oct:
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
340 for f in $(notdir $(OCT_FILES)); do \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
341 rm -f $(DESTDIR)$(octfiledir)/$$f; \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
342 done
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
343 rm -f $(DESTDIR)$(octfiledir)/PKG_ADD
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
344 endif
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
345 .PHONY: install-oct uninstall-oct
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
346
15492
f62c2c57b800 build: do not install DOCSTRINGS when configuring with --disable-docs
Stefan Husmann <stefan-husmann@t-online.de>
parents: 15482
diff changeset
347 if AMCOND_BUILD_DOCS
15470
bf0857c789f4 initialize docstrings for built-in functions from file
John W. Eaton <jwe@octave.org>
parents: 15463
diff changeset
348 install-built-in-docstrings:
15482
cb49817af457 ensure $(octetcdir) exists when installing built-in-docstrings file
John W. Eaton <jwe@octave.org>
parents: 15470
diff changeset
349 $(MKDIR_P) $(DESTDIR)$(octetcdir)
15470
bf0857c789f4 initialize docstrings for built-in functions from file
John W. Eaton <jwe@octave.org>
parents: 15463
diff changeset
350 $(INSTALL_DATA) DOCSTRINGS $(DESTDIR)$(octetcdir)/built-in-docstrings
15796
07231ebb6df3 build: Add rule to uninstall built-in-docstrings and allow distcheck to pass.
Rik <rik@octave.org>
parents: 15768
diff changeset
351
07231ebb6df3 build: Add rule to uninstall built-in-docstrings and allow distcheck to pass.
Rik <rik@octave.org>
parents: 15768
diff changeset
352 uninstall-built-in-docstrings:
07231ebb6df3 build: Add rule to uninstall built-in-docstrings and allow distcheck to pass.
Rik <rik@octave.org>
parents: 15768
diff changeset
353 rm -f $(DESTDIR)$(octetcdir)/built-in-docstrings
15496
acfee9c61f80 build: Fix Makefile warning about redefinition of PHONY target
Rik <rik@octave.org>
parents: 15492
diff changeset
354 endif
15796
07231ebb6df3 build: Add rule to uninstall built-in-docstrings and allow distcheck to pass.
Rik <rik@octave.org>
parents: 15768
diff changeset
355 .PHONY: install-built-in-docstrings uninstall-built-in-docstrings
15470
bf0857c789f4 initialize docstrings for built-in functions from file
John W. Eaton <jwe@octave.org>
parents: 15463
diff changeset
356
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
357 CLEANFILES = \
15076
000587f92082 rename src/DLD-FUNCTIONS directory to src/dldfcn
John W. Eaton <jwe@octave.org>
parents: 15075
diff changeset
358 $(DLDFCN_PKG_ADD_FILE) \
16892
68fc671a9339 maint: Collapse interpfcn and interpfcn-core directories into corefcn directory.
Rik <rik@octave.org>
parents: 16321
diff changeset
359 corefcn/graphics-props.cc \
15088
60ff2cef569d maint: Move core interpreter files with DEFUNS to interpfcn/ directory
Rik <rik@octave.org>
parents: 15086
diff changeset
360 parse-tree/oct-parse.output
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
361
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
362 DISTCLEANFILES = \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
363 .DOCSTRINGS \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
364 DOCSTRINGS \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
365 $(BUILT_NODISTFILES) \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
366 $(OCT_FILES) \
16056
f4f0aea29b21 build: remove *-tst files with distclean rule.
Rik <rik@octave.org>
parents: 16019
diff changeset
367 $(OCT_STAMP_FILES) \
f4f0aea29b21 build: remove *-tst files with distclean rule.
Rik <rik@octave.org>
parents: 16019
diff changeset
368 $(TST_FILES)
12730
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
369
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
370 MAINTAINERCLEANFILES = \
633ef00d963c maint: Reorganize src/Makefile.am for understanding. No rules changed.
Rik <octave@nomad.inbox5.com>
parents: 12727
diff changeset
371 $(BUILT_DISTFILES)
16056
f4f0aea29b21 build: remove *-tst files with distclean rule.
Rik <rik@octave.org>
parents: 16019
diff changeset
372