annotate Makefile.am @ 10986:20bb05b9fb3f

makefile rules for compiled auxiliary programs
author John W. Eaton <jwe@octave.org>
date Thu, 16 Sep 2010 06:30:15 -0400
parents dea165ff6d74
children 061bd86a0bf3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 # Makefile for octave
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 #
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3 # Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 John W. Eaton
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 #
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6 # This file is part of Octave.
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 #
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 # 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
9 # 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
10 # 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
11 # your option) any later version.
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 #
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 # 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
14 # 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
15 # 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
16 # for more details.
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 #
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 # 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
19 # 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
20 # <http://www.gnu.org/licenses/>.
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21
10004
e517da95bf98 Eliminate TOPDIR variable in favor of built-in automake variables
Rik <rdrider0-list@yahoo.com>
parents: 9968
diff changeset
22 include common.mk
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23
10004
e517da95bf98 Eliminate TOPDIR variable in favor of built-in automake variables
Rik <rdrider0-list@yahoo.com>
parents: 9968
diff changeset
24 ## Avoid making multiple subdirs in parallel which can lead
e517da95bf98 Eliminate TOPDIR variable in favor of built-in automake variables
Rik <rdrider0-list@yahoo.com>
parents: 9968
diff changeset
25 ## to a confusing error message stream
e517da95bf98 Eliminate TOPDIR variable in favor of built-in automake variables
Rik <rdrider0-list@yahoo.com>
parents: 9968
diff changeset
26 .NOTPARALLEL:
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28 ACLOCAL_AMFLAGS = -I m4
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30 BUILT_DISTFILES = BUGS INSTALL.OCTAVE
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32 EXTRA_DIST = \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
33 BUGS \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34 COPYING \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
35 ChangeLog \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
36 ChangeLog.1 \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
37 INSTALL \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
38 INSTALL.OCTAVE \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
39 NEWS \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
40 NEWS.1 \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
41 NEWS.2 \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
42 NEWS.3 \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
43 PROJECTS \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
44 README \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
45 README.Cygwin \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
46 README.Linux \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
47 README.MSVC \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
48 README.Windows \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
49 README.kpathsea \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
50 ROADMAP \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
51 SENDING-PATCHES \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
52 autogen.sh \
10360
9126d71f53aa add gdbinit file to sources
John W. Eaton <jwe@octave.org>
parents: 10092
diff changeset
53 gdbinit \
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
54 missing \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
55 mk-opts.pl \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
56 mkinstalldirs \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
57 mkoctfile.cc.in \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
58 mkoctfile.in \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
59 move-if-change \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
60 octave-bug.cc.in \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
61 octave-bug.in \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
62 octave-config.cc.in \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
63 octave-config.in \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
64 octave-sh \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
65 run-octave.in
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
66
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
67 include m4/module.mk
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
68
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
69 # Subdirectories in which to run `make all'.
10092
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10006
diff changeset
70 SUBDIRS = libgnu libcruft liboctave src scripts @DOCDIR@ examples test
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10006
diff changeset
71
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10006
diff changeset
72 if AMCOND_BUILD_DOCS
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10006
diff changeset
73 else
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10006
diff changeset
74 dist-hook:
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10006
diff changeset
75 echo "Documentation disabled. Cannot package distribution!" ; exit 1;
02453ee20140 allow building of docs to be disabled
John W. Eaton <jwe@octave.org>
parents: 10006
diff changeset
76 endif
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
77
10986
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
78 if AMCOND_BUILD_COMPILED_AUX_PROGRAMS
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
79 bin_PROGRAMS = \
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
80 mkoctfile \
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
81 octave-config \
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
82 octave-bug
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
83
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
84 mkoctfile_SOURCES =
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
85 nodist_mkoctfile_SOURCES = mkoctfile.cc
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
86
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
87 octave_config_SOURCES =
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
88 nodist_octave_config_SOURCES = octave-config.cc
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
89
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
90 octave_bug_SOURCES =
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
91 nodist_octave_bug_SOURCES = octave-bug.cc
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
92
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
93 BUILT_SOURCES = \
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
94 mkoctfile.cc \
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
95 octave-config.cc \
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
96 octave-bug.cc
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
97
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
98 else
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
99 bin_SCRIPTS = \
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
100 mkoctfile \
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
101 octave-config \
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
102 octave-bug \
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
103 run-octave
10986
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
104 endif
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
105
10986
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
106 noinst_SCRIPTS = run-octave
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
107
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
108 INFO_FILES = \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
109 INSTALL.OCTAVE \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
110 BUGS
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
111
10986
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
112 CLEANFILES = $(bin_PROGRAMS) $(bin_SCRIPTS) $(BUILT_SOURCES)
9943
4c681ff57bc3 Modifications to makefiles to pass distcheck test
Rik <rdrider0-list@yahoo.com>
parents: 9864
diff changeset
113
10837
6ea0cf31667d Add Makefile options to clean up build directories and allow 'make distcheck' to finish
Rik <octave@nomad.inbox5.com>
parents: 10501
diff changeset
114 DISTCLEANFILES = $(INFO_FILES) .gdbinit
9943
4c681ff57bc3 Modifications to makefiles to pass distcheck test
Rik <rdrider0-list@yahoo.com>
parents: 9864
diff changeset
115
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
116 CONFIG_FILES = @ac_config_headers@ @ac_config_files@
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
117
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
118 nodist_octinclude_HEADERS = config.h
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
119
10986
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
120 all-local: $(bin_PROGRAMS) $(bin_SCRIPTS) $(noinst_SCRIPTS) $(INFO_FILES) .gdbinit
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
121 @echo ""
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
122 @echo "Octave successfully built. Now choose from the following:"
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
123 @echo ""
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
124 @echo " ./run-octave - to run in place to test before installing"
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
125 @echo " make check - to run the tests"
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
126 @echo " make install - to install (PREFIX=$(prefix))"
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
127 @echo ""
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
128
10986
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
129 if AMCOND_BUILD_COMPILED_AUX_PROGRAMS
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
130 octave-bug.cc: octave-bug.cc.in Makefile
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
131 @$(do_subst_config_vals)
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
132
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
133 octave-config.cc: octave-config.cc.in Makefile
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
134 @$(do_subst_default_vals)
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
135
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
136 mkoctfile.cc: mkoctfile.cc.in Makefile
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
137 @$(do_subst_config_vals)
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
138 else
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
139 octave-bug: octave-bug.in Makefile
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
140 @$(do_subst_config_vals)
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
141 chmod a+rx $@
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
142
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
143 octave-config: octave-config.in Makefile
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
144 @$(do_subst_default_vals)
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
145 chmod a+rx $@
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
146
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
147 mkoctfile: mkoctfile.in Makefile
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
148 @$(do_subst_config_vals)
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
149 chmod a+rx $@
10986
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
150 endif
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
151
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
152 run-octave: run-octave.in Makefile
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
153 @$(do_subst_script_vals)
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
154 chmod a+rx "$@"
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
155
10360
9126d71f53aa add gdbinit file to sources
John W. Eaton <jwe@octave.org>
parents: 10092
diff changeset
156 .gdbinit: gdbinit
9126d71f53aa add gdbinit file to sources
John W. Eaton <jwe@octave.org>
parents: 10092
diff changeset
157 if [ -f .gdbinit ]; then \
9126d71f53aa add gdbinit file to sources
John W. Eaton <jwe@octave.org>
parents: 10092
diff changeset
158 echo "refusing to overwrite .gdbinit with newer version from $<" 1>&2; \
9126d71f53aa add gdbinit file to sources
John W. Eaton <jwe@octave.org>
parents: 10092
diff changeset
159 else \
9126d71f53aa add gdbinit file to sources
John W. Eaton <jwe@octave.org>
parents: 10092
diff changeset
160 cp $< $@; \
9126d71f53aa add gdbinit file to sources
John W. Eaton <jwe@octave.org>
parents: 10092
diff changeset
161 fi
9126d71f53aa add gdbinit file to sources
John W. Eaton <jwe@octave.org>
parents: 10092
diff changeset
162
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
163 BUGS INSTALL.OCTAVE:
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
164 $(MAKE) -C doc ../$@
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
165 .PHONY: BUGS INSTALL.OCTAVE
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
166
9968
f3bef90b7278 Remove various install-local targets in favor of using automake syntax for installation
Rik <rdrider0-list@yahoo.com>
parents: 9946
diff changeset
167 octetc_DATA = NEWS
f3bef90b7278 Remove various install-local targets in favor of using automake syntax for installation
Rik <rdrider0-list@yahoo.com>
parents: 9946
diff changeset
168
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
169 DIRS_TO_MAKE = \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
170 $(localfcnfiledir) \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
171 $(localapifcnfiledir) \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
172 $(localverfcnfiledir) \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
173 $(localoctfiledir) \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
174 $(localapioctfiledir) \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
175 $(localveroctfiledir) \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
176 $(localarchlibdir) \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
177 $(localapiarchlibdir) \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
178 $(localverarchlibdir)
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
179
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
180 installdirs-local:
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
181 $(MKDIR_P) $(addprefix $(DESTDIR), $(DIRS_TO_MAKE))
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
182
9968
f3bef90b7278 Remove various install-local targets in favor of using automake syntax for installation
Rik <rdrider0-list@yahoo.com>
parents: 9946
diff changeset
183 install-data-local: installdirs-local
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
184
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
185 install-exec-hook: make-version-links
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
186
9968
f3bef90b7278 Remove various install-local targets in favor of using automake syntax for installation
Rik <rdrider0-list@yahoo.com>
parents: 9946
diff changeset
187 uninstall-local: remove-version-links
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
188
10986
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
189 if AMCOND_BUILD_COMPILED_AUX_PROGRAMS
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
190 make-version-links:
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
191 cd $(DESTDIR)$(bindir) && \
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
192 for f in $(basename $(bin_PROGRAMS)); do \
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
193 mv $$f$(EXEEXT) $$f-$(version)$(EXEEXT) && \
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
194 $(LN_S) $$f-$(version)$(EXEEXT) $$f$(EXEEXT); \
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
195 done
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
196
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
197 remove-version-links:
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
198 for f in $(basename $(bin_PROGRAMS)); do \
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
199 rm -f $(DESTDIR)$(bindir)/$$f-$(version)$(EXEEXT); \
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
200 done
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
201 else
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
202 make-version-links:
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
203 cd $(DESTDIR)$(bindir) && \
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
204 for f in $(basename $(bin_SCRIPTS)); do \
10986
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
205 mv $$f $$f-$(version) && \
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
206 $(LN_S) $$f-$(version) $$f; \
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
207 done
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
208
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
209 remove-version-links:
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
210 for f in $(basename $(bin_SCRIPTS)); do \
10986
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
211 rm -f $(DESTDIR)$(bindir)/$$f-$(version); \
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
212 done
10986
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
213 endif
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
214
10986
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
215 .PHONY: make-version-links remove-version-links
20bb05b9fb3f makefile rules for compiled auxiliary programs
John W. Eaton <jwe@octave.org>
parents: 10856
diff changeset
216