Mercurial > octave-antonio
annotate Makefile.in @ 8817:03b7f618ab3d
include docstrings for new functions in the manual
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 19 Feb 2009 15:39:19 -0500 |
parents | 997d4384cec4 |
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, |
4 # 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/>. | |
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 | |
33 $(TARGETS): FORCE | |
34 $(MAKE) -f octMakefile $@ | |
35 | |
36 $(NO_DEP_TARGETS): FORCE | |
37 $(MAKE) -f octMakefile omit_deps=true $@ | |
38 | |
39 # Maybe this message will prevent people from asking why the | |
40 # Makefiles don't work for them. Maybe not. | |
41 | |
42 header-msg: FORCE | |
43 @echo "" | |
3148 | 44 @echo "***********************************************************" |
3728 | 45 @echo "*" |
46 @echo "* To compile Octave, you will need a recent versions of" | |
47 @echo "* the following software:" | |
48 @echo "*" | |
8003
997d4384cec4
Makefile.in (header-msg): Mention GNU Make; update GCC version info
John W. Eaton <jwe@octave.org>
parents:
7017
diff
changeset
|
49 @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
|
50 @echo "*" |
997d4384cec4
Makefile.in (header-msg): Mention GNU Make; update GCC version info
John W. Eaton <jwe@octave.org>
parents:
7017
diff
changeset
|
51 @echo "* g++ (preferably a recent 4.x version, though later" |
997d4384cec4
Makefile.in (header-msg): Mention GNU Make; update GCC version info
John W. Eaton <jwe@octave.org>
parents:
7017
diff
changeset
|
52 @echo "* 3.x versions may also work)" |
3728 | 53 @echo "*" |
3731 | 54 @echo "* flex (2.5.4 or a more recent version) -- required if" |
55 @echo "* you need to recreate lex.cc from lex.l" | |
3728 | 56 @echo "*" |
4756 | 57 @echo "* bison (1.31 or a more recent version) -- required if" |
3731 | 58 @echo "* you need to recreate parse.cc from parse.y" |
3728 | 59 @echo "*" |
5094 | 60 @echo "* gperf (3.0.1 or a more recent version) -- required if" |
3731 | 61 @echo "* you need to recreate oct-gperf.h from octave.gperf" |
3728 | 62 @echo "*" |
63 @echo "* Now would be a good time to read INSTALL.OCTAVE if" | |
64 @echo "* you have not done so already." | |
65 @echo "*" | |
3148 | 66 @echo "***********************************************************" |
2681 | 67 @echo "" |
68 | |
69 help: header-msg | |
70 @echo "" | |
71 @echo "For more information, please read the files INSTALL," | |
72 @echo "INSTALL.OCTAVE, and any other system-specific README" | |
73 @echo "files that apply (e.g., README.Linux)." | |
74 @echo "" | |
75 @echo "The following targets are available:" | |
76 @echo "" | |
77 @echo " all build everything" | |
78 @echo " check run self tests" | |
79 @echo " install install files" | |
80 @echo " install-strip same as install but strip binaries" | |
81 @echo " uninstall delete installed files" | |
82 @echo "" | |
83 @echo " dist create a source distribution" | |
84 @echo " conf-dist create a config files distribution" | |
85 @echo "" | |
86 @echo " clean remove files created by make all" | |
87 @echo " mostlyclean remove most files created by make all" | |
88 @echo " distclean remove all files not in distribution" | |
89 @echo " maintainer-clean clean up everything" | |
90 @echo "" | |
91 @echo " octave-bug create octave-bug script" | |
3845 | 92 @echo " octave-config create octave-config script" |
2681 | 93 @echo " mkoctfile create mkoctfile script" |
94 @echo " INSTALL.OCTAVE create INSTALL.OCTAVE doc file" | |
95 @echo " BUGS create BUGS doc file" | |
96 @echo " tags create tags files" | |
97 @echo " TAGS create TAGS files" | |
98 @echo "" | |
99 @echo " dlfcn make all in subdirectory dlfcn" | |
100 @echo " doc make all in subdirectory doc" | |
101 @echo " libcruft make all in subdirectory libcruft" | |
102 @echo " liboctave make all in subdirectory liboctave" | |
103 @echo " scripts make all in subdirectory scripts" | |
104 @echo " src make all in subdirectory src" | |
105 @echo "" | |
106 @echo " help print this message" | |
107 @echo "" | |
108 | |
109 config-check: | |
3029 | 110 @if test -f octMakefile; then \ |
111 true; \ | |
2681 | 112 else \ |
3029 | 113 echo ""; \ |
114 echo "*** You must run configure before running make."; \ | |
115 echo "***"; \ | |
116 echo "*** Please read the INSTALL and INSTALL.OCTAVE files"; \ | |
117 echo "*** for more information about how to configure and"; \ | |
118 echo "*** compile Octave."; \ | |
119 echo ""; \ | |
120 exit 1; \ | |
2681 | 121 fi |
122 | |
123 FORCE: | |
3648 | 124 |
125 .NOTPARALLEL: |