Mercurial > hg > octave-nkf
annotate Makefile @ 9178:a6375c37dad4
update config stuff to gripe with g++-3.x
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 05 May 2009 15:37:13 +0200 |
parents | eb63fbe60fab |
children |
rev | line source |
---|---|
2681 | 1 # Makefile for octave's src directory |
2 # | |
7017 | 3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000, 2001, 2003, 2004, |
8920 | 4 # 2005, 2006, 2007, 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/>. | |
2681 | 21 |
3845 | 22 TARGETS = octave-bug octave-config mkoctfile libcruft liboctave \ |
4378 | 23 dlfcn readline src scripts doc check octave.info \ |
3845 | 24 INSTALL.OCTAVE BUGS install install-strip uninstall \ |
5776 | 25 tags TAGS dist conf-dist snapshot snapshot-version \ |
26 .gdbinit run-octave | |
2681 | 27 |
28 NO_DEP_TARGETS = clean mostlyclean distclean maintainer-clean | |
29 | |
30 all: header-msg config-check | |
31 $(MAKE) -f octMakefile all | |
32 | |
8850
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
33 configfiles: FORCE |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
34 $(MAKE) -f octMakefile configfiles |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
35 |
2681 | 36 $(TARGETS): FORCE |
37 $(MAKE) -f octMakefile $@ | |
38 | |
39 $(NO_DEP_TARGETS): FORCE | |
40 $(MAKE) -f octMakefile omit_deps=true $@ | |
41 | |
42 # Maybe this message will prevent people from asking why the | |
43 # Makefiles don't work for them. Maybe not. | |
44 | |
45 header-msg: FORCE | |
46 @echo "" | |
3148 | 47 @echo "***********************************************************" |
3728 | 48 @echo "*" |
49 @echo "* To compile Octave, you will need a recent versions of" | |
50 @echo "* the following software:" | |
51 @echo "*" | |
8003
997d4384cec4
Makefile.in (header-msg): Mention GNU Make; update GCC version info
John W. Eaton <jwe@octave.org>
parents:
7017
diff
changeset
|
52 @echo "* GNU Make (a recent version)" |
997d4384cec4
Makefile.in (header-msg): Mention GNU Make; update GCC version info
John W. Eaton <jwe@octave.org>
parents:
7017
diff
changeset
|
53 @echo "*" |
9178
a6375c37dad4
update config stuff to gripe with g++-3.x
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
54 @echo "* g++ (preferably a recent 4.x version)" |
3728 | 55 @echo "*" |
3731 | 56 @echo "* flex (2.5.4 or a more recent version) -- required if" |
57 @echo "* you need to recreate lex.cc from lex.l" | |
3728 | 58 @echo "*" |
4756 | 59 @echo "* bison (1.31 or a more recent version) -- required if" |
3731 | 60 @echo "* you need to recreate parse.cc from parse.y" |
3728 | 61 @echo "*" |
5094 | 62 @echo "* gperf (3.0.1 or a more recent version) -- required if" |
3731 | 63 @echo "* you need to recreate oct-gperf.h from octave.gperf" |
3728 | 64 @echo "*" |
65 @echo "* Now would be a good time to read INSTALL.OCTAVE if" | |
66 @echo "* you have not done so already." | |
67 @echo "*" | |
3148 | 68 @echo "***********************************************************" |
2681 | 69 @echo "" |
70 | |
71 help: header-msg | |
72 @echo "" | |
73 @echo "For more information, please read the files INSTALL," | |
74 @echo "INSTALL.OCTAVE, and any other system-specific README" | |
75 @echo "files that apply (e.g., README.Linux)." | |
76 @echo "" | |
77 @echo "The following targets are available:" | |
78 @echo "" | |
79 @echo " all build everything" | |
80 @echo " check run self tests" | |
81 @echo " install install files" | |
82 @echo " install-strip same as install but strip binaries" | |
83 @echo " uninstall delete installed files" | |
84 @echo "" | |
85 @echo " dist create a source distribution" | |
86 @echo " conf-dist create a config files distribution" | |
87 @echo "" | |
88 @echo " clean remove files created by make all" | |
89 @echo " mostlyclean remove most files created by make all" | |
90 @echo " distclean remove all files not in distribution" | |
91 @echo " maintainer-clean clean up everything" | |
92 @echo "" | |
93 @echo " octave-bug create octave-bug script" | |
3845 | 94 @echo " octave-config create octave-config script" |
2681 | 95 @echo " mkoctfile create mkoctfile script" |
96 @echo " INSTALL.OCTAVE create INSTALL.OCTAVE doc file" | |
97 @echo " BUGS create BUGS doc file" | |
98 @echo " tags create tags files" | |
99 @echo " TAGS create TAGS files" | |
100 @echo "" | |
101 @echo " dlfcn make all in subdirectory dlfcn" | |
102 @echo " doc make all in subdirectory doc" | |
103 @echo " libcruft make all in subdirectory libcruft" | |
104 @echo " liboctave make all in subdirectory liboctave" | |
105 @echo " scripts make all in subdirectory scripts" | |
106 @echo " src make all in subdirectory src" | |
107 @echo "" | |
8850
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
108 @echo " configfiles update the configuration files" |
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
109 @echo "" |
2681 | 110 @echo " help print this message" |
111 @echo "" | |
112 | |
113 config-check: | |
3029 | 114 @if test -f octMakefile; then \ |
115 true; \ | |
2681 | 116 else \ |
3029 | 117 echo ""; \ |
118 echo "*** You must run configure before running make."; \ | |
119 echo "***"; \ | |
120 echo "*** Please read the INSTALL and INSTALL.OCTAVE files"; \ | |
121 echo "*** for more information about how to configure and"; \ | |
122 echo "*** compile Octave."; \ | |
123 echo ""; \ | |
124 exit 1; \ | |
2681 | 125 fi |
126 | |
127 FORCE: | |
3648 | 128 |
129 .NOTPARALLEL: |