Mercurial > hg > octave-thorsten
annotate octMakefile.in @ 12048:4dc74edc8321 release-3-2-x
avoid complex -> real conversion when constructing arrays with []
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 25 Jul 2009 16:26:01 +0200 |
parents | 4b94672337d0 |
children | 4531741e5236 b7828901c281 |
rev | line source |
---|---|
5 | 1 # Makefile for octave |
2 # | |
7017 | 3 # Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, |
8920 | 4 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 John W. Eaton |
7017 | 5 # |
7016 | 6 # This file is part of Octave. |
7 # | |
8 # Octave is free software; you can redistribute it and/or modify it | |
9 # under the terms of the GNU General Public License as published by the | |
10 # Free Software Foundation; either version 3 of the License, or (at | |
11 # your option) any later version. | |
12 # | |
13 # Octave is distributed in the hope that it will be useful, but WITHOUT | |
14 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
15 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
16 # for more details. | |
17 # | |
18 # You should have received a copy of the GNU General Public License | |
19 # along with Octave; see the file COPYING. If not, see | |
20 # <http://www.gnu.org/licenses/>. | |
5 | 21 |
22 TOPDIR = . | |
23 | |
24 srcdir = @srcdir@ | |
411 | 25 top_srcdir = @top_srcdir@ |
5798 | 26 abs_top_srcdir = @abs_top_srcdir@ |
5 | 27 VPATH = @srcdir@ |
28 | |
9229
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
29 SCRIPTS_EXE_SUFFIX = @SCRIPTS_EXE_SUFFIX@ |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
30 |
411 | 31 include $(TOPDIR)/Makeconf |
5 | 32 |
989 | 33 INSTALL = @INSTALL@ |
34 INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
2642 | 35 INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
989 | 36 INSTALL_DATA = @INSTALL_DATA@ |
37 | |
8849
8b7e448d989c
Do not autogenerate Makefile from Makefile.in.
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8722
diff
changeset
|
38 CONF_DISTFILES = Makefile octMakefile.in Makeconf.in \ |
4290 | 39 configure configure.in config.guess config.sub aclocal.m4 \ |
7951
9d102940bdc7
Include acx_blas_f77_func.m4 in the distribution tarball
Rafael Laboissiere <rafael@debian.org>
parents:
7917
diff
changeset
|
40 acx_blas.m4 acx_lapack.m4 acx_blas_f77_func.m4 \ |
9d102940bdc7
Include acx_blas_f77_func.m4 in the distribution tarball
Rafael Laboissiere <rafael@debian.org>
parents:
7917
diff
changeset
|
41 config.h.in install-sh autogen.sh |
1895 | 42 |
8849
8b7e448d989c
Do not autogenerate Makefile from Makefile.in.
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8722
diff
changeset
|
43 BUILT_DISTFILES = BUGS INSTALL.OCTAVE |
6796 | 44 |
1895 | 45 DISTFILES = $(CONF_DISTFILES) \ |
7062 | 46 COPYING INSTALL NEWS \ |
4378 | 47 NEWS.[0-9] PROJECTS README README.Linux README.Windows \ |
7088 | 48 README.Cygwin README.MSVC README.kpathsea ROADMAP SENDING-PATCHES \ |
9229
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
49 move-if-change octave-sh octave-bug.in octave-bug.cc.in \ |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
50 octave-config.in octave-config.cc.in missing mk-opts.pl mkinstalldirs \ |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
51 mkoctfile.in mkoctfile.cc.in run-octave.in ChangeLog ChangeLog.[0-9] |
5 | 52 |
1134 | 53 # Subdirectories in which to run `make all'. |
7253 | 54 SUBDIRS = libcruft liboctave src scripts doc examples |
3004 | 55 |
56 # Subdirectories in which to run `make all'. | |
3154 | 57 INSTALL_SUBDIRS = libcruft liboctave src scripts doc examples |
3004 | 58 |
2394 | 59 # Subdirectories in which to run `make conf-dist'. |
1895 | 60 CONF_DISTSUBDIRS = src |
61 | |
1134 | 62 # Subdirectories in which to run `make dist'. |
7253 | 63 DISTSUBDIRS = $(sort $(SUBDIRS) test emacs) |
5 | 64 |
2394 | 65 # Subdirectories in which to run clean targets. |
5170 | 66 CLEANSUBDIRS = $(DISTSUBDIRS) |
2394 | 67 |
7916
f805e026c481
octMakefile.in (DIRS_TO_MAKE): update list
John W. Eaton <jwe@octave.org>
parents:
7315
diff
changeset
|
68 DIRS_TO_MAKE = $(bindir) $(datadir) $(libdir) $(octincludedir)/octave \ |
f805e026c481
octMakefile.in (DIRS_TO_MAKE): update list
John W. Eaton <jwe@octave.org>
parents:
7315
diff
changeset
|
69 $(fcnfiledir) $(localfcnfiledir) $(localapifcnfiledir) \ |
8722
3cedb606145d
create $(DESTDIR)$(octetcdir) when installing
John W. Eaton <jwe@octave.org>
parents:
8719
diff
changeset
|
70 $(localverfcnfiledir) $(octetcdir) $(octfiledir) $(localoctfiledir) \ |
7917
fa8f13a05687
octMakefile.in (DIRS_TO_MAKE): finish previous change
John W. Eaton <jwe@octave.org>
parents:
7916
diff
changeset
|
71 $(localapioctfiledir) $(localveroctfiledir) $(imagedir) $(archlibdir) \ |
fa8f13a05687
octMakefile.in (DIRS_TO_MAKE): finish previous change
John W. Eaton <jwe@octave.org>
parents:
7916
diff
changeset
|
72 $(localarchlibdir) $(localapiarchlibdir) $(localverarchlibdir) |
666 | 73 |
9229
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
74 SHELL_SCRIPTS = octave-bug$(SCRIPTS_EXE_SUFFIX) octave-config$(SCRIPTS_EXE_SUFFIX) \ |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
75 mkoctfile$(SCRIPTS_EXE_SUFFIX) run-octave |
5635 | 76 |
8850
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
77 CONFIG_FILES = @ac_config_files@ |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
78 |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
79 M4_FILES = $(wildcard *.m4) |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
80 |
6290 | 81 all: $(SHELL_SCRIPTS) $(filter-out libcruft liboctave, $(SUBDIRS)) dist-info-files |
6444 | 82 @echo "" |
6428 | 83 @echo "Octave successfully built. Now choose from the following:" |
84 @echo "" | |
7143 | 85 @echo " ./run-octave - to run in place to test before installing" |
6428 | 86 @echo " make check - to run the tests" |
8696
87cb8b2e4f14
octMakefile.in (all): display $(prefix) in summary message
John W. Eaton <jwe@octave.org>
parents:
8559
diff
changeset
|
87 @echo " make install - to install (PREFIX=$(prefix))" |
6428 | 88 @echo "" |
5 | 89 .PHONY: all |
90 | |
8850
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
91 configfiles: $(CONFIG_FILES) |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
92 for dir in $(CONFIG_SUBDIRS); do \ |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
93 $(MAKE) -C $$dir configfiles; \ |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
94 done |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
95 .PHONY: configfiles |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
96 |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
97 $(CONFIG_FILES): %: %.in config.status |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
98 ./config.status $@ |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
99 |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
100 config.status: configure |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
101 ./config.status --recheck |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
102 |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
103 configure: configure.in $(M4_FILES) |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
104 (cd $(top_srcdir); autoconf --force) |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
105 (cd $(top_srcdir); autoheader --force) |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
106 |
5635 | 107 src: liboctave |
108 | |
109 liboctave: libcruft | |
110 | |
111 $(SUBDIRS): | |
3646 | 112 $(MAKE) -C $@ all |
5635 | 113 .PHONY: $(SUBDIRS) |
3646 | 114 |
7315 | 115 octave-bug: octave-bug.in Makeconf octMakefile $(top_srcdir)/src/version.h |
2147 | 116 @$(do-subst-config-vals) |
2454 | 117 chmod a+rx $@ |
2147 | 118 |
9229
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
119 octave-bug.cc: octave-bug.cc.in Makeconf octMakefile |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
120 @$(do-subst-config-vals) |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
121 |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
122 ifneq ($(EXEEXT),) |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
123 octave-bug$(EXEEXT): octave-bug.o |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
124 $(LD_CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(RDYNAMIC_FLAG) \ |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
125 $(ALL_LDFLAGS) -o $@ octave-bug.o |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
126 endif |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
127 |
7315 | 128 octave-config: octave-config.in Makeconf octMakefile $(top_srcdir)/src/version.h |
3845 | 129 @$(do-subst-default-vals) |
130 chmod a+rx $@ | |
131 | |
9229
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
132 octave-config.cc: octave-config.cc.in Makeconf octMakefile |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
133 @$(do-subst-default-vals) |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
134 |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
135 ifneq ($(EXEEXT),) |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
136 octave-config$(EXEEXT): octave-config.o |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
137 $(LD_CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(RDYNAMIC_FLAG) \ |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
138 $(ALL_LDFLAGS) -o $@ octave-config.o |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
139 endif |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
140 |
7315 | 141 mkoctfile: mkoctfile.in Makeconf octMakefile $(top_srcdir)/src/version.h |
2147 | 142 @$(do-subst-config-vals) |
2454 | 143 chmod a+rx $@ |
798 | 144 |
9229
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
145 mkoctfile.cc: mkoctfile.cc.in Makeconf octMakefile |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
146 @$(do-subst-config-vals) |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
147 |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
148 ifneq ($(EXEEXT),) |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
149 mkoctfile$(EXEEXT): mkoctfile.o |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
150 $(LD_CXX) $(CPPFLAGS) $(ALL_CXXFLAGS) $(RDYNAMIC_FLAG) \ |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
151 $(ALL_LDFLAGS) -o $@ mkoctfile.o |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
152 endif |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
153 |
5776 | 154 run-octave: run-octave.in Makeconf octMakefile |
155 @$(do-subst-script-vals) | |
156 chmod a+rx "$@" | |
157 | |
5 | 158 check: |
5840 | 159 $(MAKE) -C test $@ |
5 | 160 .PHONY: check |
161 | |
162 octave.info: | |
3297 | 163 $(MAKE) -C doc/interpreter octave.info |
5 | 164 .PHONY: octave.info |
165 | |
3297 | 166 BUGS INSTALL.OCTAVE: |
167 $(MAKE) -C doc ../$@ | |
168 .PHONY: BUGS INSTALL.OCTAVE | |
5 | 169 |
2811 | 170 install install-strip :: |
4413 | 171 $(top_srcdir)/mkinstalldirs $(addprefix $(DESTDIR), $(DIRS_TO_MAKE)) |
9229
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
172 rm -f $(DESTDIR)$(bindir)/octave-bug$(SCRIPTS_EXE_SUFFIX) |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
173 $(INSTALL_SCRIPT) octave-bug$(SCRIPTS_EXE_SUFFIX) \ |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
174 $(DESTDIR)$(bindir)/octave-bug-$(version)$(SCRIPTS_EXE_SUFFIX) |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
175 (cd $(DESTDIR)$(bindir); $(LN_S) octave-bug-$(version)$(SCRIPTS_EXE_SUFFIX) \ |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
176 $(DESTDIR)$(bindir)/octave-bug$(SCRIPTS_EXE_SUFFIX)) |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
177 rm -f $(DESTDIR)$(bindir)/octave-config$(SCRIPTS_EXE_SUFFIX) |
4413 | 178 $(INSTALL_SCRIPT) \ |
9229
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
179 octave-config$(SCRIPTS_EXE_SUFFIX) $(DESTDIR)$(bindir)/octave-config-$(version)$(SCRIPTS_EXE_SUFFIX) |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
180 (cd $(DESTDIR)$(bindir); $(LN_S) octave-config-$(version)$(SCRIPTS_EXE_SUFFIX) \ |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
181 $(DESTDIR)$(bindir)/octave-config$(SCRIPTS_EXE_SUFFIX)) |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
182 rm -f $(DESTDIR)$(bindir)/mkoctfile$(SCRIPTS_EXE_SUFFIX) |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
183 $(INSTALL_SCRIPT) mkoctfile$(SCRIPTS_EXE_SUFFIX) \ |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
184 $(DESTDIR)$(bindir)/mkoctfile-$(version)$(SCRIPTS_EXE_SUFFIX) |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
185 (cd $(DESTDIR)$(bindir); $(LN_S) mkoctfile-$(version)$(SCRIPTS_EXE_SUFFIX) \ |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
186 $(DESTDIR)$(bindir)/mkoctfile$(SCRIPTS_EXE_SUFFIX)) |
4413 | 187 $(INSTALL_DATA) config.h $(DESTDIR)$(octincludedir)/octave/config.h |
8719
679c270b7584
install DOC and NEWS in $octetcdir
John W. Eaton <jwe@octave.org>
parents:
8696
diff
changeset
|
188 $(INSTALL_DATA) $(srcdir)/NEWS $(DESTDIR)$(octetcdir)/NEWS |
4413 | 189 |
190 uninstall:: | |
9229
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
191 rm -f $(DESTDIR)$(bindir)/octave-bug$(SCRIPTS_EXE_SUFFIX) |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
192 rm -f $(DESTDIR)$(bindir)/octave-bug-$(version)$(SCRIPTS_EXE_SUFFIX) |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
193 rm -f $(DESTDIR)$(bindir)/octave-config$(SCRIPTS_EXE_SUFFIX) |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
194 rm -f $(DESTDIR)$(bindir)/octave-config-$(version)$(SCRIPTS_EXE_SUFFIX) |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
195 rm -f $(DESTDIR)$(bindir)/mkoctfile$(SCRIPTS_EXE_SUFFIX) |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
196 rm -f $(DESTDIR)$(bindir)/mkoctfile-$(version)$(SCRIPTS_EXE_SUFFIX) |
4413 | 197 rm -f $(DESTDIR)$(octincludedir)/octave/config.h |
8719
679c270b7584
install DOC and NEWS in $octetcdir
John W. Eaton <jwe@octave.org>
parents:
8696
diff
changeset
|
198 rm -f $(DESTDIR)$(octetcdir)/NEWS |
5 | 199 |
1391 | 200 maintainer-clean:: |
1392 | 201 @echo "" |
202 @echo "************************************************************" | |
203 @echo "* *" | |
204 @echo "* This command is intended for maintainers to use; it *" | |
205 @echo "* deletes files that may require special tools to rebuild. *" | |
206 @echo "* *" | |
207 @echo "************************************************************" | |
208 @echo "" | |
1391 | 209 |
2811 | 210 install install-strip uninstall tags TAGS:: |
3004 | 211 $(foreach d, $(INSTALL_SUBDIRS), $(do-subdir-for-command)) |
2811 | 212 .PHONY: install install-strip uninstall tags |
2046 | 213 |
214 clean mostlyclean distclean maintainer-clean:: | |
2394 | 215 $(foreach d, $(CLEANSUBDIRS), $(do-subdir-for-command)) |
2046 | 216 .PHONY: clean mostlyclean distclean maintainer-clean |
5 | 217 |
3287 | 218 maintainer-clean distclean:: |
8849
8b7e448d989c
Do not autogenerate Makefile from Makefile.in.
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8722
diff
changeset
|
219 rm -f octMakefile Makeconf |
4710 | 220 rm -f config.cache config.h config.log config.status |
221 rm -rf autom4te.cache | |
6987 | 222 rm -f $(SHELL_SCRIPTS) |
9229
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
223 rm -f mkoctfile.cc octave-config.cc octave-bug.cc |
6090 | 224 rm -f unistd.h |
2812 | 225 |
3287 | 226 maintainer-clean:: |
4440 | 227 rm -f configure config.h.in BUGS INSTALL.OCTAVE |
5 | 228 |
9229
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
229 maintainer-clean distclean clean:: |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
230 rm -f mkoctfile$(EXEEXT) octave-config$(EXEEXT) octave-bug$(EXEEXT) |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
231 rm -f mkoctfile.o octave-config.o octave-bug.o |
4b94672337d0
Add Makefile/configure support for C++ version of mkoctfile, octave-config and octave-bug
Michael Goffioul <michael.goffioul@gmail.com>
parents:
8920
diff
changeset
|
232 |
692 | 233 # Rules for making a source distribution. |
5 | 234 |
2624 | 235 dist-info-files: INSTALL.OCTAVE BUGS |
2405 | 236 .PHONY: dist-info-files |
237 | |
5913 | 238 # The dist target depends on all because we use Octave to build some |
239 # figures for the manual. It's best to create those figures with the | |
240 # version of Octave that we are distributing (it may even be required). | |
241 | |
6290 | 242 dist: all |
5 | 243 echo octave-$(version) > .fname |
244 rm -rf `cat .fname` | |
245 mkdir `cat .fname` | |
6798 | 246 ln $(addprefix $(srcdir)/, $(DISTFILES)) `cat .fname` |
6796 | 247 ln $(BUILT_DISTFILES) `cat .fname` |
2629 | 248 for dir in $(DISTSUBDIRS); do \ |
3029 | 249 mkdir `cat .fname`/$$dir; \ |
3297 | 250 $(MAKE) -C $$dir dist; \ |
2629 | 251 done |
692 | 252 tar chf `cat .fname`.tar `cat .fname` |
253 rm -rf `cat .fname` | |
2624 | 254 tar xf `cat .fname`.tar |
255 find `cat .fname` \( \( -name RCS -a -type d \) \ | |
2782 | 256 -o \( -name CVS -a -type d \) -o \( -name OLD -a -type d \) \ |
3926 | 257 -o \( -name autom4te.cache -a -type d \) \ |
2782 | 258 -o -name "=*" -o -name '*~' -o -name '#*#' -o -name config.log \ |
3151 | 259 -o -name config.status -o -name config.cache -o -name stamp-h \ |
3601 | 260 -o -name klibtool.config -o -name stamp-auto \ |
261 -o -name c-auto.h \) -print | xargs rm -rf | |
2624 | 262 rm -f `cat .fname`/test/octave.test/*.m |
263 chmod -R a+rwX `cat .fname` | |
264 tar cf `cat .fname`.tar `cat .fname` | |
2629 | 265 rm -rf `cat .fname` |
6358 | 266 gzip -9 --stdout `cat .fname`.tar > `cat .fname`.tar.gz |
267 bzip2 -9 --stdout `cat .fname`.tar > `cat .fname`.tar.bz2 | |
4843 | 268 date -u > md5sum |
269 md5sum `cat .fname`.tar.gz `cat .fname`.tar.bz2 >> md5sum | |
270 touch `cat .fname`.tar.gz `cat .fname`.tar.bz2 md5sum | |
2629 | 271 rm -f .fname |
4660 | 272 @echo "*******************" |
273 @echo "Tag the CVS archive" | |
274 @echo "*******************" | |
692 | 275 .PHONY: dist |
276 | |
2629 | 277 # Rules for making a snapshot. |
278 | |
279 snapshot-version: | |
280 @echo "creating src/version.h" | |
281 @gawk '/#define OCTAVE_VERSION[ \t]*/ { \ | |
282 datestring = strftime("%y%m%d", systime()); \ | |
283 printf("#define OCTAVE_VERSION \"ss-%s\"\n", datestring); \ | |
284 next; \ | |
285 } { print $$0 }' src/version.h > src/version.h.new | |
286 @$(top_srcdir)/move-if-change src/version.h.new src/version.h | |
287 .PHONY: snapshot-version | |
288 | |
289 snapshot: snapshot-version | |
290 $(MAKE) dist | |
291 .PHONY: snapshot | |
292 | |
293 # Rules for making a dist of just the stuff needed to run configure. | |
294 | |
295 conf-dist: | |
296 echo config-dist-$(version) > .fname | |
297 rm -rf `cat .fname` | |
298 mkdir `cat .fname` | |
6467 | 299 ln $(CONF_DISTFILES) `cat .fname` |
2629 | 300 for dir in $(CONF_DISTSUBDIRS); do \ |
3029 | 301 mkdir `cat .fname`/$$dir; \ |
3297 | 302 $(MAKE) -C $$dir conf-dist; \ |
2629 | 303 done |
304 tar chf `cat .fname`.tar `cat .fname` | |
305 rm -rf `cat .fname` | |
306 gzip --best `cat .fname`.tar | |
307 rm -f .fname | |
308 .PHONY: conf-dist | |
309 | |
3648 | 310 .NOTPARALLEL: |