2681
|
1 # |
|
2 # Makefile for octave's src directory |
|
3 # |
|
4 # John W. Eaton |
|
5 # jwe@bevo.che.wisc.edu |
|
6 # University of Wisconsin-Madison |
|
7 # Department of Chemical Engineering |
|
8 |
3845
|
9 TARGETS = octave-bug octave-config mkoctfile libcruft liboctave \ |
4378
|
10 dlfcn readline src scripts doc check octave.info \ |
3845
|
11 INSTALL.OCTAVE BUGS install install-strip uninstall \ |
5776
|
12 tags TAGS dist conf-dist snapshot snapshot-version \ |
|
13 .gdbinit run-octave |
2681
|
14 |
|
15 NO_DEP_TARGETS = clean mostlyclean distclean maintainer-clean |
|
16 |
|
17 all: header-msg config-check |
|
18 $(MAKE) -f octMakefile all |
|
19 |
|
20 $(TARGETS): FORCE |
|
21 $(MAKE) -f octMakefile $@ |
|
22 |
|
23 $(NO_DEP_TARGETS): FORCE |
|
24 $(MAKE) -f octMakefile omit_deps=true $@ |
|
25 |
|
26 # Maybe this message will prevent people from asking why the |
|
27 # Makefiles don't work for them. Maybe not. |
|
28 |
|
29 header-msg: FORCE |
|
30 @echo "" |
3148
|
31 @echo "***********************************************************" |
3728
|
32 @echo "*" |
|
33 @echo "* To compile Octave, you will need a recent versions of" |
|
34 @echo "* the following software:" |
|
35 @echo "*" |
4309
|
36 @echo "* g++ (3.2.x or a more recent version)" |
3728
|
37 @echo "*" |
3731
|
38 @echo "* flex (2.5.4 or a more recent version) -- required if" |
|
39 @echo "* you need to recreate lex.cc from lex.l" |
3728
|
40 @echo "*" |
4756
|
41 @echo "* bison (1.31 or a more recent version) -- required if" |
3731
|
42 @echo "* you need to recreate parse.cc from parse.y" |
3728
|
43 @echo "*" |
5094
|
44 @echo "* gperf (3.0.1 or a more recent version) -- required if" |
3731
|
45 @echo "* you need to recreate oct-gperf.h from octave.gperf" |
3728
|
46 @echo "*" |
|
47 @echo "* Now would be a good time to read INSTALL.OCTAVE if" |
|
48 @echo "* you have not done so already." |
|
49 @echo "*" |
3148
|
50 @echo "***********************************************************" |
2681
|
51 @echo "" |
|
52 |
|
53 help: header-msg |
|
54 @echo "" |
|
55 @echo "For more information, please read the files INSTALL," |
|
56 @echo "INSTALL.OCTAVE, and any other system-specific README" |
|
57 @echo "files that apply (e.g., README.Linux)." |
|
58 @echo "" |
|
59 @echo "The following targets are available:" |
|
60 @echo "" |
|
61 @echo " all build everything" |
|
62 @echo " check run self tests" |
|
63 @echo " install install files" |
|
64 @echo " install-strip same as install but strip binaries" |
|
65 @echo " uninstall delete installed files" |
|
66 @echo "" |
|
67 @echo " dist create a source distribution" |
|
68 @echo " conf-dist create a config files distribution" |
|
69 @echo "" |
|
70 @echo " clean remove files created by make all" |
|
71 @echo " mostlyclean remove most files created by make all" |
|
72 @echo " distclean remove all files not in distribution" |
|
73 @echo " maintainer-clean clean up everything" |
|
74 @echo "" |
|
75 @echo " octave-bug create octave-bug script" |
3845
|
76 @echo " octave-config create octave-config script" |
2681
|
77 @echo " mkoctfile create mkoctfile script" |
|
78 @echo " INSTALL.OCTAVE create INSTALL.OCTAVE doc file" |
|
79 @echo " BUGS create BUGS doc file" |
|
80 @echo " tags create tags files" |
|
81 @echo " TAGS create TAGS files" |
|
82 @echo "" |
|
83 @echo " dlfcn make all in subdirectory dlfcn" |
|
84 @echo " doc make all in subdirectory doc" |
|
85 @echo " libcruft make all in subdirectory libcruft" |
|
86 @echo " liboctave make all in subdirectory liboctave" |
|
87 @echo " scripts make all in subdirectory scripts" |
|
88 @echo " src make all in subdirectory src" |
|
89 @echo "" |
|
90 @echo " help print this message" |
|
91 @echo "" |
|
92 |
|
93 config-check: |
3029
|
94 @if test -f octMakefile; then \ |
|
95 true; \ |
2681
|
96 else \ |
3029
|
97 echo ""; \ |
|
98 echo "*** You must run configure before running make."; \ |
|
99 echo "***"; \ |
|
100 echo "*** Please read the INSTALL and INSTALL.OCTAVE files"; \ |
|
101 echo "*** for more information about how to configure and"; \ |
|
102 echo "*** compile Octave."; \ |
|
103 echo ""; \ |
|
104 exit 1; \ |
2681
|
105 fi |
|
106 |
|
107 FORCE: |
3648
|
108 |
|
109 .NOTPARALLEL: |