Mercurial > octave-nkf
annotate Makefile.am @ 9946:55061c7c8d6e
start using gnulib
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 09 Dec 2009 01:36:50 -0500 |
parents | 4c681ff57bc3 |
children | f3bef90b7278 |
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 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 TOPDIR = . |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
23 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
24 include common.mk |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
25 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
26 ACLOCAL_AMFLAGS = -I m4 |
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 SCRIPTS_EXE_SUFFIX = @SCRIPTS_EXE_SUFFIX@ |
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 \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
53 missing \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
54 mk-opts.pl \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
55 mkinstalldirs \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
56 mkoctfile.cc.in \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
57 mkoctfile.in \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
58 move-if-change \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
59 octave-bug.cc.in \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
60 octave-bug.in \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
61 octave-config.cc.in \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
62 octave-config.in \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
63 octave-sh \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
64 run-octave.in |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
65 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
66 include emacs/module.mk |
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'. |
9946 | 70 SUBDIRS = libgnu libcruft liboctave src scripts doc examples test |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
71 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
72 BUILT_SHELL_FILES = \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
73 mkoctfile$(SCRIPTS_EXE_SUFFIX) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
74 octave-config$(SCRIPTS_EXE_SUFFIX) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
75 octave-bug$(SCRIPTS_EXE_SUFFIX) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
76 run-octave |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
77 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
78 bin_SCRIPTS = \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
79 mkoctfile$(SCRIPTS_EXE_SUFFIX) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
80 octave-config$(SCRIPTS_EXE_SUFFIX) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
81 octave-bug$(SCRIPTS_EXE_SUFFIX) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
82 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
83 INFO_FILES = \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
84 INSTALL.OCTAVE \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
85 BUGS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
86 |
9943
4c681ff57bc3
Modifications to makefiles to pass distcheck test
Rik <rdrider0-list@yahoo.com>
parents:
9864
diff
changeset
|
87 CLEANFILES = $(BUILT_SHELL_FILES) |
4c681ff57bc3
Modifications to makefiles to pass distcheck test
Rik <rdrider0-list@yahoo.com>
parents:
9864
diff
changeset
|
88 |
4c681ff57bc3
Modifications to makefiles to pass distcheck test
Rik <rdrider0-list@yahoo.com>
parents:
9864
diff
changeset
|
89 DISTCLEANFILES = $(INFO_FILES) |
4c681ff57bc3
Modifications to makefiles to pass distcheck test
Rik <rdrider0-list@yahoo.com>
parents:
9864
diff
changeset
|
90 |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
91 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
|
92 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
93 BUILT_SOURCES = run-octave |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
94 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
95 nodist_octinclude_HEADERS = config.h |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
96 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
97 all-local: $(bin_SCRIPTS) $(INFO_FILES) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
98 @echo "" |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
99 @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
|
100 @echo "" |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
101 @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
|
102 @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
|
103 @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
|
104 @echo "" |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
105 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
106 octave-bug: octave-bug.in Makefile |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
107 @$(do_subst_config_vals) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
108 chmod a+rx $@ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
109 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
110 octave-bug.cc: octave-bug.cc.in Makefile |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
111 @$(do_subst_config_vals) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
112 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
113 # ifneq ($(EXEEXT),) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
114 # octave-bug$(EXEEXT): octave-bug.o |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
115 # $(LD_CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(RDYNAMIC_FLAG) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
116 # $(ALL_LDFLAGS) -o $@ octave-bug.o |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
117 # endif |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
118 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
119 octave-config: octave-config.in Makefile |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
120 @$(do_subst_default_vals) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
121 chmod a+rx $@ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
122 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
123 octave-config.cc: octave-config.cc.in Makefile |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
124 @$(do_subst_default_vals) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
125 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
126 # ifneq ($(EXEEXT),) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
127 # octave-config$(EXEEXT): octave-config.o |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
128 # $(LD_CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(RDYNAMIC_FLAG) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
129 # $(ALL_LDFLAGS) -o $@ octave-config.o |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
130 # endif |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
131 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
132 mkoctfile: mkoctfile.in Makefile |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
133 @$(do_subst_config_vals) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
134 chmod a+rx $@ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
135 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
136 mkoctfile.cc: mkoctfile.cc.in Makefile |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
137 @$(do_subst_config_vals) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
138 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
139 # ifneq ($(EXEEXT),) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
140 # mkoctfile$(EXEEXT): mkoctfile.o |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
141 # $(LD_CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(RDYNAMIC_FLAG) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
142 # $(ALL_LDFLAGS) -o $@ mkoctfile.o |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
143 # endif |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
144 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
145 run-octave: run-octave.in Makefile |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
146 @$(do_subst_script_vals) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
147 chmod a+rx "$@" |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
148 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
149 BUGS INSTALL.OCTAVE: |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
150 $(MAKE) -C doc ../$@ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
151 .PHONY: BUGS INSTALL.OCTAVE |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
152 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
153 DIRS_TO_MAKE = \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
154 $(localfcnfiledir) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
155 $(localapifcnfiledir) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
156 $(localverfcnfiledir) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
157 $(localoctfiledir) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
158 $(localapioctfiledir) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
159 $(localveroctfiledir) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
160 $(localarchlibdir) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
161 $(localapiarchlibdir) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
162 $(localverarchlibdir) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
163 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
164 installdirs-local: |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
165 $(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
|
166 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
167 install-data-local: installdirs-local install-extras |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
168 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
169 install-exec-hook: make-version-links |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
170 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
171 uninstall-local: remove-version-links uninstall-extras |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
172 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
173 install-extras: |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
174 $(MKDIR_P) $(DESTDIR)$(octetcdir) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
175 $(INSTALL_DATA) $(srcdir)/NEWS $(DESTDIR)$(octetcdir)/NEWS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
176 .PHONY: install-extras |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
177 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
178 uninstall-extras: |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
179 rm -f $(DESTDIR)$(octetcdir)/NEWS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
180 .PHONY: uninstall-extras |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
181 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
182 make-version-links: |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
183 cd $(DESTDIR)$(bindir) && \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
184 for f in $(basename $(bin_SCRIPTS)); do \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
185 mv $$f$(EXEEXT) $$f-$(version)$(EXEEXT) && \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
186 $(LN_S) $$f-$(version)$(EXEEXT) $$f$(EXEEXT); \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
187 done |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
188 .PHONY: make-version-links |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
189 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
190 remove-version-links: |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
191 for f in $(basename $(bin_SCRIPTS)); do \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
192 rm -f $(DESTDIR)$(bindir)/$$f-$(version)$(EXEEXT); \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
193 done |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
194 .PHONY: remove-version-links |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
195 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
196 # install install-strip :: |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
197 # $(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
|
198 # rm -f $(DESTDIR)$(bindir)/octave-bug$(SCRIPTS_EXE_SUFFIX) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
199 # $(INSTALL_SCRIPT) octave-bug$(SCRIPTS_EXE_SUFFIX) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
200 # $(DESTDIR)$(bindir)/octave-bug-$(version)$(SCRIPTS_EXE_SUFFIX) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
201 # (cd $(DESTDIR)$(bindir); $(LN_S) octave-bug-$(version)$(SCRIPTS_EXE_SUFFIX) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
202 # $(DESTDIR)$(bindir)/octave-bug$(SCRIPTS_EXE_SUFFIX)) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
203 # rm -f $(DESTDIR)$(bindir)/octave-config$(SCRIPTS_EXE_SUFFIX) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
204 # $(INSTALL_SCRIPT) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
205 # octave-config$(SCRIPTS_EXE_SUFFIX) $(DESTDIR)$(bindir)/octave-config-$(version)$(SCRIPTS_EXE_SUFFIX) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
206 # (cd $(DESTDIR)$(bindir); $(LN_S) octave-config-$(version)$(SCRIPTS_EXE_SUFFIX) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
207 # $(DESTDIR)$(bindir)/octave-config$(SCRIPTS_EXE_SUFFIX)) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
208 # rm -f $(DESTDIR)$(bindir)/mkoctfile$(SCRIPTS_EXE_SUFFIX) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
209 # $(INSTALL_SCRIPT) mkoctfile$(SCRIPTS_EXE_SUFFIX) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
210 # $(DESTDIR)$(bindir)/mkoctfile-$(version)$(SCRIPTS_EXE_SUFFIX) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
211 # (cd $(DESTDIR)$(bindir); $(LN_S) mkoctfile-$(version)$(SCRIPTS_EXE_SUFFIX) \ |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
212 # $(DESTDIR)$(bindir)/mkoctfile$(SCRIPTS_EXE_SUFFIX)) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
213 # $(INSTALL_DATA) config.h $(DESTDIR)$(octincludedir)/octave/config.h |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
214 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
215 # uninstall:: |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
216 # rm -f $(DESTDIR)$(bindir)/octave-bug$(SCRIPTS_EXE_SUFFIX) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
217 # rm -f $(DESTDIR)$(bindir)/octave-bug-$(version)$(SCRIPTS_EXE_SUFFIX) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
218 # rm -f $(DESTDIR)$(bindir)/octave-config$(SCRIPTS_EXE_SUFFIX) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
219 # rm -f $(DESTDIR)$(bindir)/octave-config-$(version)$(SCRIPTS_EXE_SUFFIX) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
220 # rm -f $(DESTDIR)$(bindir)/mkoctfile$(SCRIPTS_EXE_SUFFIX) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
221 # rm -f $(DESTDIR)$(bindir)/mkoctfile-$(version)$(SCRIPTS_EXE_SUFFIX) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
222 # rm -f $(DESTDIR)$(octincludedir)/octave/config.h |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
223 # rm -f $(DESTDIR)$(octetcdir)/NEWS |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
224 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
225 # maintainer-clean:: |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
226 # @echo "" |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
227 # @echo "************************************************************" |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
228 # @echo "* *" |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
229 # @echo "* This command is intended for maintainers to use; it *" |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
230 # @echo "* deletes files that may require special tools to rebuild. *" |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
231 # @echo "* *" |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
232 # @echo "************************************************************" |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
233 # @echo "" |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
234 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
235 # maintainer-clean distclean:: |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
236 # rm -f Makefile |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
237 # rm -f config.cache config.h config.log config.status |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
238 # rm -rf autom4te.cache |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
239 # rm -f $(SHELL_FILES) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
240 # rm -f mkoctfile.cc octave-config.cc octave-bug.cc |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
241 # rm -f unistd.h |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
242 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
243 # maintainer-clean:: |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
244 # rm -f configure config.h.in BUGS INSTALL.OCTAVE |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
245 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
246 # maintainer-clean distclean clean:: |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
247 # rm -f mkoctfile$(EXEEXT) octave-config$(EXEEXT) octave-bug$(EXEEXT) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
248 # rm -f mkoctfile.o octave-config.o octave-bug.o |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
249 |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
250 .NOTPARALLEL: |