Mercurial > octave
annotate octMakefile.in @ 8710:739141cde75a ss-3-1-52
fix typo in Array-f.cc
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Mon, 09 Feb 2009 21:51:31 +0100 |
parents | 87cb8b2e4f14 |
children | 679c270b7584 |
rev | line source |
---|---|
5 | 1 # Makefile for octave |
2 # | |
7017 | 3 # Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, |
4 # 2002, 2003, 2004, 2005, 2006, 2007 John W. Eaton | |
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 | |
411 | 29 include $(TOPDIR)/Makeconf |
5 | 30 |
989 | 31 INSTALL = @INSTALL@ |
32 INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
2642 | 33 INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
989 | 34 INSTALL_DATA = @INSTALL_DATA@ |
35 | |
6796 | 36 BUILT_CONF_DISTFILES = Makefile |
37 | |
38 CONF_DISTFILES = Makefile.in 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 |
6796 | 43 BUILT_DISTFILES = $(BUILT_CONF_DISTFILES) BUGS INSTALL.OCTAVE |
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 \ |
8559
07c93dae3fdb
THANKS, Announce: remove obsolete files
John W. Eaton <jwe@octave.org>
parents:
8000
diff
changeset
|
49 move-if-change octave-sh octave-bug.in \ |
8000
ea3cd9791703
octMakefile.in (DISTFILES): add "missing" to the list
John W. Eaton <jwe@octave.org>
parents:
7951
diff
changeset
|
50 octave-config.in missing mk-opts.pl mkinstalldirs \ |
6987 | 51 mkoctfile.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) \ |
f805e026c481
octMakefile.in (DIRS_TO_MAKE): update list
John W. Eaton <jwe@octave.org>
parents:
7315
diff
changeset
|
70 $(localverfcnfiledir) $(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 |
5788 | 74 SHELL_SCRIPTS = octave-bug octave-config mkoctfile run-octave |
5635 | 75 |
6290 | 76 all: $(SHELL_SCRIPTS) $(filter-out libcruft liboctave, $(SUBDIRS)) dist-info-files |
6444 | 77 @echo "" |
6428 | 78 @echo "Octave successfully built. Now choose from the following:" |
79 @echo "" | |
7143 | 80 @echo " ./run-octave - to run in place to test before installing" |
6428 | 81 @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
|
82 @echo " make install - to install (PREFIX=$(prefix))" |
6428 | 83 @echo "" |
5 | 84 .PHONY: all |
85 | |
5635 | 86 src: liboctave |
87 | |
88 liboctave: libcruft | |
89 | |
90 $(SUBDIRS): | |
3646 | 91 $(MAKE) -C $@ all |
5635 | 92 .PHONY: $(SUBDIRS) |
3646 | 93 |
7315 | 94 octave-bug: octave-bug.in Makeconf octMakefile $(top_srcdir)/src/version.h |
2147 | 95 @$(do-subst-config-vals) |
2454 | 96 chmod a+rx $@ |
2147 | 97 |
7315 | 98 octave-config: octave-config.in Makeconf octMakefile $(top_srcdir)/src/version.h |
3845 | 99 @$(do-subst-default-vals) |
100 chmod a+rx $@ | |
101 | |
7315 | 102 mkoctfile: mkoctfile.in Makeconf octMakefile $(top_srcdir)/src/version.h |
2147 | 103 @$(do-subst-config-vals) |
2454 | 104 chmod a+rx $@ |
798 | 105 |
5776 | 106 run-octave: run-octave.in Makeconf octMakefile |
107 @$(do-subst-script-vals) | |
108 chmod a+rx "$@" | |
109 | |
5 | 110 check: |
5840 | 111 $(MAKE) -C test $@ |
5 | 112 .PHONY: check |
113 | |
114 octave.info: | |
3297 | 115 $(MAKE) -C doc/interpreter octave.info |
5 | 116 .PHONY: octave.info |
117 | |
3297 | 118 BUGS INSTALL.OCTAVE: |
119 $(MAKE) -C doc ../$@ | |
120 .PHONY: BUGS INSTALL.OCTAVE | |
5 | 121 |
2811 | 122 install install-strip :: |
4413 | 123 $(top_srcdir)/mkinstalldirs $(addprefix $(DESTDIR), $(DIRS_TO_MAKE)) |
124 rm -f $(DESTDIR)$(bindir)/octave-bug | |
125 $(INSTALL_SCRIPT) octave-bug $(DESTDIR)$(bindir)/octave-bug-$(version) | |
5454 | 126 (cd $(DESTDIR)$(bindir); $(LN_S) octave-bug-$(version) $(DESTDIR)$(bindir)/octave-bug) |
4413 | 127 rm -f $(DESTDIR)$(bindir)/octave-config |
128 $(INSTALL_SCRIPT) \ | |
129 octave-config $(DESTDIR)$(bindir)/octave-config-$(version) | |
5454 | 130 (cd $(DESTDIR)$(bindir); $(LN_S) octave-config-$(version) $(DESTDIR)$(bindir)/octave-config) |
4413 | 131 rm -f $(DESTDIR)$(bindir)/mkoctfile |
132 $(INSTALL_SCRIPT) mkoctfile $(DESTDIR)$(bindir)/mkoctfile-$(version) | |
5454 | 133 (cd $(DESTDIR)$(bindir); $(LN_S) mkoctfile-$(version) $(DESTDIR)$(bindir)/mkoctfile) |
4413 | 134 $(INSTALL_DATA) config.h $(DESTDIR)$(octincludedir)/octave/config.h |
6253 | 135 $(INSTALL_DATA) $(srcdir)/NEWS $(DESTDIR)$(datadir)/octave/$(version)/NEWS |
4413 | 136 |
137 uninstall:: | |
138 rm -f $(DESTDIR)$(bindir)/octave-bug | |
139 rm -f $(DESTDIR)$(bindir)/octave-bug-$(version) | |
140 rm -f $(DESTDIR)$(bindir)/octave-config | |
141 rm -f $(DESTDIR)$(bindir)/octave-config-$(version) | |
142 rm -f $(DESTDIR)$(bindir)/mkoctfile | |
143 rm -f $(DESTDIR)$(bindir)/mkoctfile-$(version) | |
144 rm -f $(DESTDIR)$(octincludedir)/octave/config.h | |
6253 | 145 rm -f $(DESTDIR)$(datadir)/octave/$(version)/NEWS |
5 | 146 |
1391 | 147 maintainer-clean:: |
1392 | 148 @echo "" |
149 @echo "************************************************************" | |
150 @echo "* *" | |
151 @echo "* This command is intended for maintainers to use; it *" | |
152 @echo "* deletes files that may require special tools to rebuild. *" | |
153 @echo "* *" | |
154 @echo "************************************************************" | |
155 @echo "" | |
1391 | 156 |
2811 | 157 install install-strip uninstall tags TAGS:: |
3004 | 158 $(foreach d, $(INSTALL_SUBDIRS), $(do-subdir-for-command)) |
2811 | 159 .PHONY: install install-strip uninstall tags |
2046 | 160 |
161 clean mostlyclean distclean maintainer-clean:: | |
2394 | 162 $(foreach d, $(CLEANSUBDIRS), $(do-subdir-for-command)) |
2046 | 163 .PHONY: clean mostlyclean distclean maintainer-clean |
5 | 164 |
3287 | 165 maintainer-clean distclean:: |
7063 | 166 rm -f octMakefile Makefile Makeconf |
4710 | 167 rm -f config.cache config.h config.log config.status |
168 rm -rf autom4te.cache | |
6987 | 169 rm -f $(SHELL_SCRIPTS) |
6090 | 170 rm -f unistd.h |
2812 | 171 |
3287 | 172 maintainer-clean:: |
4440 | 173 rm -f configure config.h.in BUGS INSTALL.OCTAVE |
5 | 174 |
692 | 175 # Rules for making a source distribution. |
5 | 176 |
2624 | 177 dist-info-files: INSTALL.OCTAVE BUGS |
2405 | 178 .PHONY: dist-info-files |
179 | |
5913 | 180 # The dist target depends on all because we use Octave to build some |
181 # figures for the manual. It's best to create those figures with the | |
182 # version of Octave that we are distributing (it may even be required). | |
183 | |
6290 | 184 dist: all |
5 | 185 echo octave-$(version) > .fname |
186 rm -rf `cat .fname` | |
187 mkdir `cat .fname` | |
6798 | 188 ln $(addprefix $(srcdir)/, $(DISTFILES)) `cat .fname` |
6796 | 189 ln $(BUILT_DISTFILES) `cat .fname` |
2629 | 190 for dir in $(DISTSUBDIRS); do \ |
3029 | 191 mkdir `cat .fname`/$$dir; \ |
3297 | 192 $(MAKE) -C $$dir dist; \ |
2629 | 193 done |
692 | 194 tar chf `cat .fname`.tar `cat .fname` |
195 rm -rf `cat .fname` | |
2624 | 196 tar xf `cat .fname`.tar |
197 find `cat .fname` \( \( -name RCS -a -type d \) \ | |
2782 | 198 -o \( -name CVS -a -type d \) -o \( -name OLD -a -type d \) \ |
3926 | 199 -o \( -name autom4te.cache -a -type d \) \ |
2782 | 200 -o -name "=*" -o -name '*~' -o -name '#*#' -o -name config.log \ |
3151 | 201 -o -name config.status -o -name config.cache -o -name stamp-h \ |
3601 | 202 -o -name klibtool.config -o -name stamp-auto \ |
203 -o -name c-auto.h \) -print | xargs rm -rf | |
2624 | 204 rm -f `cat .fname`/test/octave.test/*.m |
205 chmod -R a+rwX `cat .fname` | |
206 tar cf `cat .fname`.tar `cat .fname` | |
2629 | 207 rm -rf `cat .fname` |
6358 | 208 gzip -9 --stdout `cat .fname`.tar > `cat .fname`.tar.gz |
209 bzip2 -9 --stdout `cat .fname`.tar > `cat .fname`.tar.bz2 | |
4843 | 210 date -u > md5sum |
211 md5sum `cat .fname`.tar.gz `cat .fname`.tar.bz2 >> md5sum | |
212 touch `cat .fname`.tar.gz `cat .fname`.tar.bz2 md5sum | |
2629 | 213 rm -f .fname |
4660 | 214 @echo "*******************" |
215 @echo "Tag the CVS archive" | |
216 @echo "*******************" | |
692 | 217 .PHONY: dist |
218 | |
2629 | 219 # Rules for making a snapshot. |
220 | |
221 snapshot-version: | |
222 @echo "creating src/version.h" | |
223 @gawk '/#define OCTAVE_VERSION[ \t]*/ { \ | |
224 datestring = strftime("%y%m%d", systime()); \ | |
225 printf("#define OCTAVE_VERSION \"ss-%s\"\n", datestring); \ | |
226 next; \ | |
227 } { print $$0 }' src/version.h > src/version.h.new | |
228 @$(top_srcdir)/move-if-change src/version.h.new src/version.h | |
229 .PHONY: snapshot-version | |
230 | |
231 snapshot: snapshot-version | |
232 $(MAKE) dist | |
233 .PHONY: snapshot | |
234 | |
235 # Rules for making a dist of just the stuff needed to run configure. | |
236 | |
237 conf-dist: | |
238 echo config-dist-$(version) > .fname | |
239 rm -rf `cat .fname` | |
240 mkdir `cat .fname` | |
6467 | 241 ln $(CONF_DISTFILES) `cat .fname` |
6796 | 242 ln $(BUILT_CONF_DISTFILES) `cat .fname` |
2629 | 243 for dir in $(CONF_DISTSUBDIRS); do \ |
3029 | 244 mkdir `cat .fname`/$$dir; \ |
3297 | 245 $(MAKE) -C $$dir conf-dist; \ |
2629 | 246 done |
247 tar chf `cat .fname`.tar `cat .fname` | |
248 rm -rf `cat .fname` | |
249 gzip --best `cat .fname`.tar | |
250 rm -f .fname | |
251 .PHONY: conf-dist | |
252 | |
3648 | 253 .NOTPARALLEL: |