Mercurial > hg > octave-nkf
annotate octMakefile.in @ 9112:f5b51f54f44e
Remove obsolete comments from test scripts in test
author | Thorsten Meyer <thorsten.meyier@gmx.de> |
---|---|
date | Sun, 12 Apr 2009 22:30:00 +0200 |
parents | eb63fbe60fab |
children | 4b94672337d0 |
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 | |
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 | |
8849
8b7e448d989c
Do not autogenerate Makefile from Makefile.in.
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8722
diff
changeset
|
36 CONF_DISTFILES = Makefile octMakefile.in Makeconf.in \ |
4290 | 37 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
|
38 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
|
39 config.h.in install-sh autogen.sh |
1895 | 40 |
8849
8b7e448d989c
Do not autogenerate Makefile from Makefile.in.
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8722
diff
changeset
|
41 BUILT_DISTFILES = BUGS INSTALL.OCTAVE |
6796 | 42 |
1895 | 43 DISTFILES = $(CONF_DISTFILES) \ |
7062 | 44 COPYING INSTALL NEWS \ |
4378 | 45 NEWS.[0-9] PROJECTS README README.Linux README.Windows \ |
7088 | 46 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
|
47 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
|
48 octave-config.in missing mk-opts.pl mkinstalldirs \ |
6987 | 49 mkoctfile.in run-octave.in ChangeLog ChangeLog.[0-9] |
5 | 50 |
1134 | 51 # Subdirectories in which to run `make all'. |
7253 | 52 SUBDIRS = libcruft liboctave src scripts doc examples |
3004 | 53 |
54 # Subdirectories in which to run `make all'. | |
3154 | 55 INSTALL_SUBDIRS = libcruft liboctave src scripts doc examples |
3004 | 56 |
2394 | 57 # Subdirectories in which to run `make conf-dist'. |
1895 | 58 CONF_DISTSUBDIRS = src |
59 | |
1134 | 60 # Subdirectories in which to run `make dist'. |
7253 | 61 DISTSUBDIRS = $(sort $(SUBDIRS) test emacs) |
5 | 62 |
2394 | 63 # Subdirectories in which to run clean targets. |
5170 | 64 CLEANSUBDIRS = $(DISTSUBDIRS) |
2394 | 65 |
7916
f805e026c481
octMakefile.in (DIRS_TO_MAKE): update list
John W. Eaton <jwe@octave.org>
parents:
7315
diff
changeset
|
66 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
|
67 $(fcnfiledir) $(localfcnfiledir) $(localapifcnfiledir) \ |
8722
3cedb606145d
create $(DESTDIR)$(octetcdir) when installing
John W. Eaton <jwe@octave.org>
parents:
8719
diff
changeset
|
68 $(localverfcnfiledir) $(octetcdir) $(octfiledir) $(localoctfiledir) \ |
7917
fa8f13a05687
octMakefile.in (DIRS_TO_MAKE): finish previous change
John W. Eaton <jwe@octave.org>
parents:
7916
diff
changeset
|
69 $(localapioctfiledir) $(localveroctfiledir) $(imagedir) $(archlibdir) \ |
fa8f13a05687
octMakefile.in (DIRS_TO_MAKE): finish previous change
John W. Eaton <jwe@octave.org>
parents:
7916
diff
changeset
|
70 $(localarchlibdir) $(localapiarchlibdir) $(localverarchlibdir) |
666 | 71 |
5788 | 72 SHELL_SCRIPTS = octave-bug octave-config mkoctfile run-octave |
5635 | 73 |
8850
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
74 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
|
75 |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
76 M4_FILES = $(wildcard *.m4) |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
77 |
6290 | 78 all: $(SHELL_SCRIPTS) $(filter-out libcruft liboctave, $(SUBDIRS)) dist-info-files |
6444 | 79 @echo "" |
6428 | 80 @echo "Octave successfully built. Now choose from the following:" |
81 @echo "" | |
7143 | 82 @echo " ./run-octave - to run in place to test before installing" |
6428 | 83 @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
|
84 @echo " make install - to install (PREFIX=$(prefix))" |
6428 | 85 @echo "" |
5 | 86 .PHONY: all |
87 | |
8850
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
88 configfiles: $(CONFIG_FILES) |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
89 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
|
90 $(MAKE) -C $$dir configfiles; \ |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
91 done |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
92 .PHONY: configfiles |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
93 |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
94 $(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
|
95 ./config.status $@ |
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.status: configure |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
98 ./config.status --recheck |
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 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
|
101 (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
|
102 (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
|
103 |
5635 | 104 src: liboctave |
105 | |
106 liboctave: libcruft | |
107 | |
108 $(SUBDIRS): | |
3646 | 109 $(MAKE) -C $@ all |
5635 | 110 .PHONY: $(SUBDIRS) |
3646 | 111 |
7315 | 112 octave-bug: octave-bug.in Makeconf octMakefile $(top_srcdir)/src/version.h |
2147 | 113 @$(do-subst-config-vals) |
2454 | 114 chmod a+rx $@ |
2147 | 115 |
7315 | 116 octave-config: octave-config.in Makeconf octMakefile $(top_srcdir)/src/version.h |
3845 | 117 @$(do-subst-default-vals) |
118 chmod a+rx $@ | |
119 | |
7315 | 120 mkoctfile: mkoctfile.in Makeconf octMakefile $(top_srcdir)/src/version.h |
2147 | 121 @$(do-subst-config-vals) |
2454 | 122 chmod a+rx $@ |
798 | 123 |
5776 | 124 run-octave: run-octave.in Makeconf octMakefile |
125 @$(do-subst-script-vals) | |
126 chmod a+rx "$@" | |
127 | |
5 | 128 check: |
5840 | 129 $(MAKE) -C test $@ |
5 | 130 .PHONY: check |
131 | |
132 octave.info: | |
3297 | 133 $(MAKE) -C doc/interpreter octave.info |
5 | 134 .PHONY: octave.info |
135 | |
3297 | 136 BUGS INSTALL.OCTAVE: |
137 $(MAKE) -C doc ../$@ | |
138 .PHONY: BUGS INSTALL.OCTAVE | |
5 | 139 |
2811 | 140 install install-strip :: |
4413 | 141 $(top_srcdir)/mkinstalldirs $(addprefix $(DESTDIR), $(DIRS_TO_MAKE)) |
142 rm -f $(DESTDIR)$(bindir)/octave-bug | |
143 $(INSTALL_SCRIPT) octave-bug $(DESTDIR)$(bindir)/octave-bug-$(version) | |
5454 | 144 (cd $(DESTDIR)$(bindir); $(LN_S) octave-bug-$(version) $(DESTDIR)$(bindir)/octave-bug) |
4413 | 145 rm -f $(DESTDIR)$(bindir)/octave-config |
146 $(INSTALL_SCRIPT) \ | |
147 octave-config $(DESTDIR)$(bindir)/octave-config-$(version) | |
5454 | 148 (cd $(DESTDIR)$(bindir); $(LN_S) octave-config-$(version) $(DESTDIR)$(bindir)/octave-config) |
4413 | 149 rm -f $(DESTDIR)$(bindir)/mkoctfile |
150 $(INSTALL_SCRIPT) mkoctfile $(DESTDIR)$(bindir)/mkoctfile-$(version) | |
5454 | 151 (cd $(DESTDIR)$(bindir); $(LN_S) mkoctfile-$(version) $(DESTDIR)$(bindir)/mkoctfile) |
4413 | 152 $(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
|
153 $(INSTALL_DATA) $(srcdir)/NEWS $(DESTDIR)$(octetcdir)/NEWS |
4413 | 154 |
155 uninstall:: | |
156 rm -f $(DESTDIR)$(bindir)/octave-bug | |
157 rm -f $(DESTDIR)$(bindir)/octave-bug-$(version) | |
158 rm -f $(DESTDIR)$(bindir)/octave-config | |
159 rm -f $(DESTDIR)$(bindir)/octave-config-$(version) | |
160 rm -f $(DESTDIR)$(bindir)/mkoctfile | |
161 rm -f $(DESTDIR)$(bindir)/mkoctfile-$(version) | |
162 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
|
163 rm -f $(DESTDIR)$(octetcdir)/NEWS |
5 | 164 |
1391 | 165 maintainer-clean:: |
1392 | 166 @echo "" |
167 @echo "************************************************************" | |
168 @echo "* *" | |
169 @echo "* This command is intended for maintainers to use; it *" | |
170 @echo "* deletes files that may require special tools to rebuild. *" | |
171 @echo "* *" | |
172 @echo "************************************************************" | |
173 @echo "" | |
1391 | 174 |
2811 | 175 install install-strip uninstall tags TAGS:: |
3004 | 176 $(foreach d, $(INSTALL_SUBDIRS), $(do-subdir-for-command)) |
2811 | 177 .PHONY: install install-strip uninstall tags |
2046 | 178 |
179 clean mostlyclean distclean maintainer-clean:: | |
2394 | 180 $(foreach d, $(CLEANSUBDIRS), $(do-subdir-for-command)) |
2046 | 181 .PHONY: clean mostlyclean distclean maintainer-clean |
5 | 182 |
3287 | 183 maintainer-clean distclean:: |
8849
8b7e448d989c
Do not autogenerate Makefile from Makefile.in.
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8722
diff
changeset
|
184 rm -f octMakefile Makeconf |
4710 | 185 rm -f config.cache config.h config.log config.status |
186 rm -rf autom4te.cache | |
6987 | 187 rm -f $(SHELL_SCRIPTS) |
6090 | 188 rm -f unistd.h |
2812 | 189 |
3287 | 190 maintainer-clean:: |
4440 | 191 rm -f configure config.h.in BUGS INSTALL.OCTAVE |
5 | 192 |
692 | 193 # Rules for making a source distribution. |
5 | 194 |
2624 | 195 dist-info-files: INSTALL.OCTAVE BUGS |
2405 | 196 .PHONY: dist-info-files |
197 | |
5913 | 198 # The dist target depends on all because we use Octave to build some |
199 # figures for the manual. It's best to create those figures with the | |
200 # version of Octave that we are distributing (it may even be required). | |
201 | |
6290 | 202 dist: all |
5 | 203 echo octave-$(version) > .fname |
204 rm -rf `cat .fname` | |
205 mkdir `cat .fname` | |
6798 | 206 ln $(addprefix $(srcdir)/, $(DISTFILES)) `cat .fname` |
6796 | 207 ln $(BUILT_DISTFILES) `cat .fname` |
2629 | 208 for dir in $(DISTSUBDIRS); do \ |
3029 | 209 mkdir `cat .fname`/$$dir; \ |
3297 | 210 $(MAKE) -C $$dir dist; \ |
2629 | 211 done |
692 | 212 tar chf `cat .fname`.tar `cat .fname` |
213 rm -rf `cat .fname` | |
2624 | 214 tar xf `cat .fname`.tar |
215 find `cat .fname` \( \( -name RCS -a -type d \) \ | |
2782 | 216 -o \( -name CVS -a -type d \) -o \( -name OLD -a -type d \) \ |
3926 | 217 -o \( -name autom4te.cache -a -type d \) \ |
2782 | 218 -o -name "=*" -o -name '*~' -o -name '#*#' -o -name config.log \ |
3151 | 219 -o -name config.status -o -name config.cache -o -name stamp-h \ |
3601 | 220 -o -name klibtool.config -o -name stamp-auto \ |
221 -o -name c-auto.h \) -print | xargs rm -rf | |
2624 | 222 rm -f `cat .fname`/test/octave.test/*.m |
223 chmod -R a+rwX `cat .fname` | |
224 tar cf `cat .fname`.tar `cat .fname` | |
2629 | 225 rm -rf `cat .fname` |
6358 | 226 gzip -9 --stdout `cat .fname`.tar > `cat .fname`.tar.gz |
227 bzip2 -9 --stdout `cat .fname`.tar > `cat .fname`.tar.bz2 | |
4843 | 228 date -u > md5sum |
229 md5sum `cat .fname`.tar.gz `cat .fname`.tar.bz2 >> md5sum | |
230 touch `cat .fname`.tar.gz `cat .fname`.tar.bz2 md5sum | |
2629 | 231 rm -f .fname |
4660 | 232 @echo "*******************" |
233 @echo "Tag the CVS archive" | |
234 @echo "*******************" | |
692 | 235 .PHONY: dist |
236 | |
2629 | 237 # Rules for making a snapshot. |
238 | |
239 snapshot-version: | |
240 @echo "creating src/version.h" | |
241 @gawk '/#define OCTAVE_VERSION[ \t]*/ { \ | |
242 datestring = strftime("%y%m%d", systime()); \ | |
243 printf("#define OCTAVE_VERSION \"ss-%s\"\n", datestring); \ | |
244 next; \ | |
245 } { print $$0 }' src/version.h > src/version.h.new | |
246 @$(top_srcdir)/move-if-change src/version.h.new src/version.h | |
247 .PHONY: snapshot-version | |
248 | |
249 snapshot: snapshot-version | |
250 $(MAKE) dist | |
251 .PHONY: snapshot | |
252 | |
253 # Rules for making a dist of just the stuff needed to run configure. | |
254 | |
255 conf-dist: | |
256 echo config-dist-$(version) > .fname | |
257 rm -rf `cat .fname` | |
258 mkdir `cat .fname` | |
6467 | 259 ln $(CONF_DISTFILES) `cat .fname` |
2629 | 260 for dir in $(CONF_DISTSUBDIRS); do \ |
3029 | 261 mkdir `cat .fname`/$$dir; \ |
3297 | 262 $(MAKE) -C $$dir conf-dist; \ |
2629 | 263 done |
264 tar chf `cat .fname`.tar `cat .fname` | |
265 rm -rf `cat .fname` | |
266 gzip --best `cat .fname`.tar | |
267 rm -f .fname | |
268 .PHONY: conf-dist | |
269 | |
3648 | 270 .NOTPARALLEL: |