Mercurial > octave-nkf
comparison Makefile @ 8849:8b7e448d989c
Do not autogenerate Makefile from Makefile.in.
author | Thorsten Meyer <thorsten.meyier@gmx.de> |
---|---|
date | Tue, 24 Feb 2009 00:57:01 -0500 |
parents | Makefile.in@997d4384cec4 |
children | 538184c540a9 |
comparison
equal
deleted
inserted
replaced
8848:7557cf34ffcd | 8849:8b7e448d989c |
---|---|
1 # Makefile for octave's src directory | |
2 # | |
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 2000, 2001, 2003, 2004, | |
4 # 2005, 2006, 2007 John W. Eaton | |
5 # | |
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/>. | |
21 | |
22 TARGETS = octave-bug octave-config mkoctfile libcruft liboctave \ | |
23 dlfcn readline src scripts doc check octave.info \ | |
24 INSTALL.OCTAVE BUGS install install-strip uninstall \ | |
25 tags TAGS dist conf-dist snapshot snapshot-version \ | |
26 .gdbinit run-octave | |
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 "" | |
44 @echo "***********************************************************" | |
45 @echo "*" | |
46 @echo "* To compile Octave, you will need a recent versions of" | |
47 @echo "* the following software:" | |
48 @echo "*" | |
49 @echo "* GNU Make (a recent version)" | |
50 @echo "*" | |
51 @echo "* g++ (preferably a recent 4.x version, though later" | |
52 @echo "* 3.x versions may also work)" | |
53 @echo "*" | |
54 @echo "* flex (2.5.4 or a more recent version) -- required if" | |
55 @echo "* you need to recreate lex.cc from lex.l" | |
56 @echo "*" | |
57 @echo "* bison (1.31 or a more recent version) -- required if" | |
58 @echo "* you need to recreate parse.cc from parse.y" | |
59 @echo "*" | |
60 @echo "* gperf (3.0.1 or a more recent version) -- required if" | |
61 @echo "* you need to recreate oct-gperf.h from octave.gperf" | |
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 "*" | |
66 @echo "***********************************************************" | |
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" | |
92 @echo " octave-config create octave-config script" | |
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: | |
110 @if test -f octMakefile; then \ | |
111 true; \ | |
112 else \ | |
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; \ | |
121 fi | |
122 | |
123 FORCE: | |
124 | |
125 .NOTPARALLEL: |