Mercurial > octave-nkf
annotate doc/interpreter/Makefile.in @ 8920:eb63fbe60fab
update copyright notices
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 07 Mar 2009 10:41:27 -0500 |
parents | e258715b2e78 |
children | 6994961bf1f4 |
rev | line source |
---|---|
2000 | 1 # Makefile for octave's doc/interpreter directory |
152 | 2 # |
7017 | 3 # Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, |
8920 | 4 # 2002, 2003, 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/>. | |
152 | 21 |
2000 | 22 TOPDIR = ../.. |
152 | 23 |
24 srcdir = @srcdir@ | |
411 | 25 top_srcdir = @top_srcdir@ |
152 | 26 VPATH = @srcdir@ |
27 | |
28 include $(TOPDIR)/Makeconf | |
29 | |
651 | 30 INSTALL = @INSTALL@ |
31 INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
32 INSTALL_DATA = @INSTALL_DATA@ | |
33 | |
6888 | 34 SCRIPT_SOURCES = sparseimages.m interpimages.m geometryimages.m plotimages.m |
6001 | 35 |
8221
06094fa570a3
Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents:
8055
diff
changeset
|
36 POLYNOMIAL_FILES_NODIR = \ |
06094fa570a3
Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents:
8055
diff
changeset
|
37 display.m \ |
06094fa570a3
Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents:
8055
diff
changeset
|
38 double.m \ |
06094fa570a3
Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents:
8055
diff
changeset
|
39 end.m \ |
06094fa570a3
Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents:
8055
diff
changeset
|
40 get.m \ |
06094fa570a3
Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents:
8055
diff
changeset
|
41 mtimes.m \ |
06094fa570a3
Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents:
8055
diff
changeset
|
42 plot.m \ |
06094fa570a3
Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents:
8055
diff
changeset
|
43 polynomial.m \ |
06094fa570a3
Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents:
8055
diff
changeset
|
44 polynomial_superiorto.m \ |
06094fa570a3
Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents:
8055
diff
changeset
|
45 polyval.m \ |
06094fa570a3
Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents:
8055
diff
changeset
|
46 set.m \ |
06094fa570a3
Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents:
8055
diff
changeset
|
47 subsasgn.m \ |
06094fa570a3
Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents:
8055
diff
changeset
|
48 subsref.m |
06094fa570a3
Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents:
8055
diff
changeset
|
49 |
6577 | 50 EXAMPLE_FILES_NODIR = \ |
51 addtwomatrices.cc \ | |
52 celldemo.cc \ | |
53 firstmexdemo.c \ | |
54 fortdemo.cc \ | |
55 fortsub.f \ | |
56 funcdemo.cc \ | |
57 globaldemo.cc \ | |
58 helloworld.cc \ | |
6595 | 59 mycell.c \ |
60 myfeval.c \ | |
61 myfunc.c \ | |
62 mypow2.c \ | |
63 mysparse.c \ | |
64 mystring.c \ | |
65 mystruct.c \ | |
66 paramdemo.cc \ | |
6577 | 67 stringdemo.cc \ |
68 structdemo.cc \ | |
8221
06094fa570a3
Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents:
8055
diff
changeset
|
69 unwinddemo.cc \ |
8256
dba0037e6602
Import new texinfo.tex allowing @ in directory name. Update OOP example class location
David Bateman <dbateman@free.fr>
parents:
8221
diff
changeset
|
70 $(addprefix @polynomial/, $(POLYNOMIAL_FILES_NODIR)) |
6577 | 71 |
72 EXAMPLE_FILES = $(addprefix $(top_srcdir)/examples/, $(EXAMPLE_FILES_NODIR)) | |
73 | |
6847 | 74 GEOMETRYIMAGES = voronoi triplot griddata convhull delaunay inpolygon |
6832 | 75 GEOMETRYIMAGES_EPS = $(addsuffix .eps, $(GEOMETRYIMAGES)) |
76 GEOMETRYIMAGES_PDF = $(addsuffix .pdf, $(GEOMETRYIMAGES)) | |
77 GEOMETRYIMAGES_PNG = $(addsuffix .png, $(GEOMETRYIMAGES)) | |
7255 | 78 GEOMETRYIMAGES_TXT = $(addsuffix .txt, $(GEOMETRYIMAGES)) |
6832 | 79 |
7189 | 80 PLOTIMAGES = plot hist errorbar polar mesh plot3 extended |
6888 | 81 PLOTIMAGES_EPS = $(addsuffix .eps, $(PLOTIMAGES)) |
82 PLOTIMAGES_PDF = $(addsuffix .pdf, $(PLOTIMAGES)) | |
83 PLOTIMAGES_PNG = $(addsuffix .png, $(PLOTIMAGES)) | |
7255 | 84 PLOTIMAGES_TXT = $(addsuffix .txt, $(PLOTIMAGES)) |
6888 | 85 |
6743 | 86 INTERPIMAGES = interpft interpn interpderiv1 interpderiv2 |
6721 | 87 INTERPIMAGES_EPS = $(addsuffix .eps, $(INTERPIMAGES)) |
88 INTERPIMAGES_PDF = $(addsuffix .pdf, $(INTERPIMAGES)) | |
89 INTERPIMAGES_PNG = $(addsuffix .png, $(INTERPIMAGES)) | |
7255 | 90 INTERPIMAGES_TXT = $(addsuffix .txt, $(INTERPIMAGES)) |
6721 | 91 |
6001 | 92 SPARSEIMAGES_1 = gplot grid spmatrix spchol spcholperm |
93 SPARSEIMAGES_EPS = $(addsuffix .eps, $(SPARSEIMAGES_1)) | |
94 SPARSEIMAGES_PDF = $(addsuffix .pdf, $(SPARSEIMAGES_1)) | |
95 SPARSEIMAGES_PNG = $(addsuffix .png, $(SPARSEIMAGES_1)) | |
96 SPARSEIMAGES_TXT = $(addsuffix .txt, $(SPARSEIMAGES_1)) | |
97 | |
6832 | 98 IMAGES_EPS = $(SPARSEIMAGES_EPS) $(INTERPIMAGES_EPS) \ |
6888 | 99 $(GEOMETRYIMAGES_EPS) $(PLOTIMAGES_EPS) |
6832 | 100 IMAGES_PDF = $(SPARSEIMAGES_PDF) $(INTERPIMAGES_PDF) \ |
6888 | 101 $(GEOMETRYIMAGES_PDF) $(PLOTIMAGES_PDF) |
6832 | 102 IMAGES_PNG = $(SPARSEIMAGES_PNG) $(INTERPIMAGES_PNG) \ |
6888 | 103 $(GEOMETRYIMAGES_PNG) $(PLOTIMAGES_PNG) |
7255 | 104 IMAGES_TXT = $(SPARSEIMAGES_TXT) $(INTERPIMAGES_TXT) \ |
105 $(GEOMETRYIMAGES_TXT) $(PLOTIMAGES_TXT) | |
6031 | 106 |
107 HTML_IMAGES_PNG = $(addprefix HTML/, $(IMAGES_PNG)) | |
6366 | 108 |
6001 | 109 IMAGES = $(IMAGES_EPS) $(IMAGES_PDF) $(IMAGES_PNG) $(IMAGES_TXT) |
5648 | 110 |
6784 | 111 SUB_SOURCE := arith.txi audio.txi basics.txi bugs.txi \ |
8055
d51c3541be28
contrib.txi: new documentation for contributors
Jaroslav Hajek <highegg@gmail.com>
parents:
7988
diff
changeset
|
112 container.txi contrib.txi cp-idx.txi data.txi \ |
8839
fcba62cc4549
add chapter about diagonal and permutation matrices to manual
Jaroslav Hajek <highegg@gmail.com>
parents:
8722
diff
changeset
|
113 debug.txi diffeq.txi diagperm.txi dynamic.txi emacs.txi \ |
fcba62cc4549
add chapter about diagonal and permutation matrices to manual
Jaroslav Hajek <highegg@gmail.com>
parents:
8722
diff
changeset
|
114 errors.txi eval.txi expr.txi fn-idx.txi func.txi geometry.txi \ |
fcba62cc4549
add chapter about diagonal and permutation matrices to manual
Jaroslav Hajek <highegg@gmail.com>
parents:
8722
diff
changeset
|
115 gpl.txi grammar.txi image.txi install.txi interp.txi \ |
6558 | 116 intro.txi io.txi linalg.txi matrix.txi nonlin.txi numbers.txi \ |
8221
06094fa570a3
Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents:
8055
diff
changeset
|
117 oop.txi op-idx.txi optim.txi package.txi plot.txi poly.txi preface.txi \ |
7988
21904fe299c8
Remove the control, finance and quaternion toolboxes
David Bateman <dbateman@free.fr>
parents:
7450
diff
changeset
|
118 quad.txi set.txi signal.txi sparse.txi stats.txi \ |
8568
aa1de3a889ed
eliminate variable index from manual
John W. Eaton <jwe@octave.org>
parents:
8296
diff
changeset
|
119 stmt.txi strings.txi system.txi testfun.txi tips.txi var.txi |
152 | 120 |
6572 | 121 SOURCES := $(SUB_SOURCE) $(SCRIPT_SOURCES) |
3294 | 122 |
3851 | 123 MAIN_TEXINFO := $(srcdir)/octave.texi |
3297 | 124 |
125 SUB_TEXINFO := $(SUB_SOURCE:.txi=.texi) | |
126 | |
6654 | 127 # Don't list ../conf.texi here. |
128 TEXINFO_SOURCE := $(MAIN_TEXINFO) $(SUB_TEXINFO) contributors.texi | |
129 | |
130 TEXINFO := $(TEXINFO_SOURCE) ../conf.texi | |
152 | 131 |
7075 | 132 # Do not use --output option argument, because this is not supported |
133 # by MiKTeX (compilation under Windows/MSVC assumes the use of MiKTeX | |
134 # to build the doc). Instead, copy the source .texi using the | |
135 # targeted file name (e.g. to generate octave-a4.pdf, copy to | |
136 # octave-a4.texi) and call texi2[dvi|pdf] on it. | |
6673 | 137 |
7075 | 138 TEXI2DVICOMMAND = TEXINPUTS="..$(sepchar)$(srcdir)$(sepchar)$(srcdir)/..$(sepchar)$(TEXINPUTS)$(sepchar)" \ |
139 $(TEXI2DVI) | |
140 | |
141 TEXI2PDFCOMMAND = TEXINPUTS="..$(sepchar)$(srcdir)$(sepchar)$(srcdir)/..$(sepchar)$(TEXINPUTS)$(sepchar)" \ | |
142 $(TEXI2PDF) | |
6673 | 143 |
144 FORMATTED = octave.info octave.pdf octave-a4.pdf octave.info-[0-9]* | |
328 | 145 |
4339 | 146 MAN_BASE := mkoctfile octave octave-bug octave-config |
4149 | 147 MAN_SRC := $(addsuffix .1, $(MAN_BASE)) |
148 | |
5775 | 149 # FIXME -- need to include generated figures here... |
6798 | 150 DISTFILES = $(addprefix $(srcdir)/, Makefile.in contributors.in \ |
151 mkcontrib.awk dir munge-texi.cc $(MAN_SRC) $(SOURCES) $(MAIN_TEXINFO)) \ | |
8716
80910b37d855
generate DOC file for lookfor function
John W. Eaton <jwe@octave.org>
parents:
8568
diff
changeset
|
152 $(SUB_TEXINFO) contributors.texi $(FORMATTED) $(IMAGES) mk_doc_cache.m \ |
8873
e258715b2e78
fixes for clean targets in Makefiles
John W. Eaton <jwe@octave.org>
parents:
8839
diff
changeset
|
153 DOC stmp-html |
299 | 154 |
5706 | 155 DISTDIRS = HTML |
156 | |
6001 | 157 DISTSUBDIRS := |
5706 | 158 |
6001 | 159 SUBDIRS := |
5806 | 160 |
2624 | 161 # Look for version.h to get version information. |
162 xfiles := $(TOPDIR)/src/version.h $(srcdir)/$(TOPDIR)/src/version.h | |
163 | |
164 version_file := $(firstword $(foreach file, $(xfiles), $(wildcard $(file)))) | |
165 | |
2689 | 166 SPELL = $(patsubst %.texi, %.spell, $(TEXINFO)) |
152 | 167 |
168 %.spell : %.texi | |
169 rm -f $@ | |
8296
6d5a7cba5177
doc/interpreter/Makefile.in: eliminate move-if-change from rules
John W. Eaton <jwe@octave.org>
parents:
8256
diff
changeset
|
170 $(SED) -e 's/@@/ at /g' -e 's/@[a-zA-Z]*//g' $< | spell > $@-t |
6d5a7cba5177
doc/interpreter/Makefile.in: eliminate move-if-change from rules
John W. Eaton <jwe@octave.org>
parents:
8256
diff
changeset
|
171 mv $@-t $@ |
152 | 172 |
8716
80910b37d855
generate DOC file for lookfor function
John W. Eaton <jwe@octave.org>
parents:
8568
diff
changeset
|
173 all: octave.info octave.pdf octave-a4.pdf HTML/index.html DOC |
152 | 174 .PHONY: all |
175 | |
8296
6d5a7cba5177
doc/interpreter/Makefile.in: eliminate move-if-change from rules
John W. Eaton <jwe@octave.org>
parents:
8256
diff
changeset
|
176 DOCSTRING_FILES := $(TOPDIR)/src/DOCSTRINGS $(TOPDIR)/scripts/DOCSTRINGS |
6d5a7cba5177
doc/interpreter/Makefile.in: eliminate move-if-change from rules
John W. Eaton <jwe@octave.org>
parents:
8256
diff
changeset
|
177 |
8716
80910b37d855
generate DOC file for lookfor function
John W. Eaton <jwe@octave.org>
parents:
8568
diff
changeset
|
178 DOC: $(DOCSTRING_FILES) mk_doc_cache.m |
8717
28b8bd2f6e66
doc/interpreter/mk_doc_cache.m: improve performance
John W. Eaton <jwe@octave.org>
parents:
8716
diff
changeset
|
179 $(TOPDIR)/run-octave -f -q -H $(srcdir)/mk_doc_cache.m DOC $(DOCSTRING_FILES) || rm -f DOC |
8716
80910b37d855
generate DOC file for lookfor function
John W. Eaton <jwe@octave.org>
parents:
8568
diff
changeset
|
180 |
8296
6d5a7cba5177
doc/interpreter/Makefile.in: eliminate move-if-change from rules
John W. Eaton <jwe@octave.org>
parents:
8256
diff
changeset
|
181 $(TEXINFO): $(DOCSTRING_FILES) munge-texi$(BUILD_EXEEXT) |
3297 | 182 |
4298 | 183 munge-texi$(BUILD_EXEEXT): munge-texi.cc |
184 $(BUILD_CXX) $(BUILD_CXXFLAGS) -o $@ $^ $(BUILD_LDFLAGS) | |
3313 | 185 |
8296
6d5a7cba5177
doc/interpreter/Makefile.in: eliminate move-if-change from rules
John W. Eaton <jwe@octave.org>
parents:
8256
diff
changeset
|
186 $(DOCSTRING_FILES): |
6d5a7cba5177
doc/interpreter/Makefile.in: eliminate move-if-change from rules
John W. Eaton <jwe@octave.org>
parents:
8256
diff
changeset
|
187 $(MAKE) -C $(dir $@) $(notdir $@) |
3294 | 188 |
6535 | 189 contributors.texi: contributors.in |
190 $(AWK) -f $(srcdir)/mkcontrib.awk $(srcdir)/contributors.in > $@-t | |
8296
6d5a7cba5177
doc/interpreter/Makefile.in: eliminate move-if-change from rules
John W. Eaton <jwe@octave.org>
parents:
8256
diff
changeset
|
191 mv $@-t $@ |
6535 | 192 |
7075 | 193 octave-a4.texi: $(MAIN_TEXINFO) |
194 cp $< $@ | |
195 | |
196 octave-smallbook.texi: $(MAIN_TEXINFO) | |
197 cp $< $@ | |
198 | |
6535 | 199 $(SUB_TEXINFO) : %.texi : %.txi |
8296
6d5a7cba5177
doc/interpreter/Makefile.in: eliminate move-if-change from rules
John W. Eaton <jwe@octave.org>
parents:
8256
diff
changeset
|
200 ./munge-texi $(foreach f, $(DOCSTRING_FILES), -d $(f)) < $< > $@-t |
6d5a7cba5177
doc/interpreter/Makefile.in: eliminate move-if-change from rules
John W. Eaton <jwe@octave.org>
parents:
8256
diff
changeset
|
201 mv $@-t $@ |
3294 | 202 |
6577 | 203 octave.info: $(IMAGES_TXT) $(TEXINFO) $(EXAMPLE_FILES) |
6001 | 204 -$(MAKEINFO) -I.. -I$(srcdir) -I$(srcdir)/.. $(MAIN_TEXINFO) |
2000 | 205 |
6577 | 206 octave.dvi: $(IMAGES_EPS) $(TEXINFO) $(EXAMPLE_FILES) |
7075 | 207 -TEXINPUTS="..$(sepchar)$(srcdir)$(sepchar)$(srcdir)/..$(sepchar)$(TEXINPUTS)$(sepchar)" \ |
208 $(TEXI2DVI) $(MAIN_TEXINFO) | |
2000 | 209 |
7075 | 210 octave-a4.dvi: $(IMAGES_EPS) $(TEXINFO) $(EXAMPLE_FILES) octave-a4.texi |
211 -$(TEXI2DVICOMMAND) octave-a4.texi -t @afourpaper | |
6673 | 212 |
7075 | 213 octave-smallbook.dvi: $(IMAGES_EPS) $(TEXINFO) $(EXAMPLE_FILES) octave-smallbook.texi |
214 -$(TEXI2DVICOMMAND) octave-smallbook.texi -t @smallbook | |
6673 | 215 |
2000 | 216 octave.ps: octave.dvi |
5422 | 217 -dvips -o $@ $< |
2000 | 218 |
6673 | 219 octave-a4.ps: octave-a4.dvi |
220 -dvips -o $@ $< | |
221 | |
222 octave-smallbook.ps: octave-smallbook.dvi | |
223 -dvips -o $@ $< | |
224 | |
6577 | 225 octave.pdf: $(IMAGES_PDF) $(TEXINFO) $(EXAMPLE_FILES) |
7075 | 226 -$(TEXI2PDFCOMMAND) $(MAIN_TEXINFO) |
6673 | 227 |
7075 | 228 octave-a4.pdf: $(IMAGES_PDF) $(TEXINFO) $(EXAMPLE_FILES) octave-a4.texi |
229 -$(TEXI2PDFCOMMAND) octave-a4.texi -t @afourpaper | |
6673 | 230 |
7075 | 231 octave-smallbook.pdf: $(IMAGES_PDF) $(TEXINFO) $(EXAMPLE_FILES) octave-smallbook.texi |
232 -$(TEXI2PDFCOMMAND) octave-smallbook.texi -t @smallbook | |
5151 | 233 |
2627 | 234 ../../INSTALL.OCTAVE: install.texi |
3176 | 235 rm -f INSTALL |
5151 | 236 -$(MAKEINFO) -D INSTALLONLY \ |
3176 | 237 --no-validate --no-headers --no-split --output INSTALL \ |
5650 | 238 -I.. -I$(srcdir) -I$(srcdir)/.. $< |
2001 | 239 mv INSTALL ../../INSTALL.OCTAVE |
2000 | 240 |
2627 | 241 ../../BUGS: bugs.texi |
3176 | 242 rm -f BUGS |
5151 | 243 -$(MAKEINFO) -D BUGSONLY \ |
3176 | 244 --no-validate --no-headers --no-split --output BUGS \ |
5650 | 245 -I.. -I$(srcdir) -I$(srcdir)/.. $< |
2001 | 246 mv BUGS ../../BUGS |
2000 | 247 |
6577 | 248 HTML/index.html: $(HTML_IMAGES_PNG) $(TEXINFO) $(EXAMPLE_FILES) |
6001 | 249 -$(MAKEINFO) --html --ifinfo --output=HTML -I.. -I$(srcdir) -I$(srcdir)/.. $(MAIN_TEXINFO) |
5708 | 250 |
7450 | 251 stmp-html: HTML |
252 @if [ -f stmp-html ]; then \ | |
253 true; \ | |
254 else \ | |
255 echo "touch stmp-html"; \ | |
256 touch stmp-html; \ | |
257 fi | |
258 | |
259 HTML: | |
6031 | 260 @if [ -d HTML ]; then \ |
261 true; \ | |
262 else \ | |
7450 | 263 echo "mkdir HTML"; \ |
6031 | 264 mkdir HTML; \ |
265 fi | |
7450 | 266 |
267 $(HTML_IMAGES_PNG): HTML/%.png : %.png stmp-html | |
6669 | 268 cp $(filter-out html-dir, $<) HTML |
3189 | 269 |
6001 | 270 define run-octave |
6798 | 271 $(TOPDIR)/run-octave -f -q -H -p $(srcdir) \ |
7257 | 272 --eval "$(notdir $(basename $<)) ('$(notdir $(basename $@))', '$(patsubst .%,%, $(suffix $@))');" |
6001 | 273 endef |
274 | |
6832 | 275 $(GEOMETRYIMAGES_EPS) $(GEOMETRYIMAGES_PNG) $(GEOMETRYIMAGES_TXT): geometryimages.m |
276 $(run-octave) | |
277 | |
6888 | 278 $(PLOTIMAGES_EPS) $(PLOTIMAGES_PNG) $(PLOTIMAGES_TXT): plotimages.m |
279 $(run-octave) | |
280 | |
6858 | 281 $(INTERPIMAGES_EPS) $(INTERPIMAGES_PNG) $(INTERPIMAGES_TXT): interpimages.m |
6721 | 282 $(run-octave) |
283 | |
6001 | 284 $(SPARSEIMAGES_EPS) $(SPARSEIMAGES_PNG) $(SPARSEIMAGES_TXT): sparseimages.m |
285 $(run-octave) | |
286 | |
287 $(IMAGES_PDF) : %.pdf : %.eps | |
288 if [ -f $< ] ; then $(GHOSTSCRIPT) -dBATCH -dEPSCrop -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=$@ $< ; fi | |
289 | |
152 | 290 check: all |
291 .PHONY: check | |
292 | |
5866 | 293 install install-strip: all |
5806 | 294 @$(subdir-for-command) |
8722
3cedb606145d
create $(DESTDIR)$(octetcdir) when installing
John W. Eaton <jwe@octave.org>
parents:
8719
diff
changeset
|
295 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(man1dir) $(DESTDIR)$(infodir) $(DESTDIR)$(octetcdir) |
4413 | 296 @if test -d $(DESTDIR)$(man1dir); then \ |
4149 | 297 for f in $(MAN_BASE); do \ |
4413 | 298 rm -f $(DESTDIR)$(man1dir)/$$f$(man1ext); \ |
299 echo "installing $(srcdir)/$$f.1 in $(DESTDIR)$(man1dir)"; \ | |
300 $(INSTALL_DATA) $(srcdir)/$$f.1 $(DESTDIR)$(man1dir)/$$f$(man1ext); \ | |
4149 | 301 done ; \ |
979 | 302 fi |
4413 | 303 @if test -d $(DESTDIR)$(infodir); then \ |
304 rm -f $(DESTDIR)$(infodir)/octave.info*; \ | |
305 echo "installing info files in $(DESTDIR)$(infodir)"; \ | |
3028 | 306 if test -f octave.info; then \ |
307 for f in octave.info*; do \ | |
4413 | 308 $(INSTALL_DATA) $$f $(DESTDIR)$(infodir)/$$f; \ |
3028 | 309 done; \ |
152 | 310 else \ |
3028 | 311 for f in $(srcdir)/octave.info*; do \ |
4413 | 312 $(INSTALL_DATA) $$f $(DESTDIR)$(infodir)/`basename $$f`; \ |
3028 | 313 done; \ |
314 fi; \ | |
4413 | 315 if test -f $(DESTDIR)$(infodir)/dir; then \ |
316 if grep "^\* Octave: (octave)." $(DESTDIR)$(infodir)/dir > /dev/null; then \ | |
3028 | 317 true; \ |
980 | 318 else \ |
3028 | 319 echo ""; \ |
320 echo "You should add the following entry"; \ | |
321 echo ""; \ | |
322 echo "* Octave: (octave)."; \ | |
323 echo " Interactive language for numerical computations."; \ | |
324 echo ""; \ | |
4413 | 325 echo "to $(DESTDIR)$(infodir)/dir."; \ |
3028 | 326 echo ""; \ |
327 fi; \ | |
976 | 328 else \ |
4413 | 329 echo "installing $(srcdir)/dir in $(DESTDIR)$(infodir)"; \ |
330 $(INSTALL_DATA) $(srcdir)/dir $(DESTDIR)$(infodir)/dir; \ | |
3028 | 331 fi; \ |
152 | 332 fi |
8719
679c270b7584
install DOC and NEWS in $octetcdir
John W. Eaton <jwe@octave.org>
parents:
8717
diff
changeset
|
333 $(INSTALL_DATA) DOC $(DESTDIR)$(octetcdir)/DOC |
5866 | 334 .PHONY: install install-strip |
152 | 335 |
5866 | 336 uninstall: |
337 @$(subdir-for-command) | |
8719
679c270b7584
install DOC and NEWS in $octetcdir
John W. Eaton <jwe@octave.org>
parents:
8717
diff
changeset
|
338 rm -f $(DESTDIR)$(infodir)/octave.info* |
679c270b7584
install DOC and NEWS in $octetcdir
John W. Eaton <jwe@octave.org>
parents:
8717
diff
changeset
|
339 rm -f $(DESTDIR)$(infodir)/dir |
679c270b7584
install DOC and NEWS in $octetcdir
John W. Eaton <jwe@octave.org>
parents:
8717
diff
changeset
|
340 rm -f $(DESTDIR)$(octetcdir)/DOC |
4413 | 341 for f in $(MAN_BASE); do rm -f $(DESTDIR)$(man1dir)/$$f$(man1ext); done |
5866 | 342 .PHONY: uninstall |
152 | 343 |
344 tags: $(SOURCES) | |
345 ctags $(SOURCES) | |
346 | |
347 TAGS: $(SOURCES) | |
348 etags $(SOURCES) | |
349 | |
350 spell: $(SPELL) | |
351 .PHONY: spell | |
352 | |
5866 | 353 mostlyclean clean: |
354 @$(subdir-for-command) | |
1458 | 355 rm -f octave.cp octave.fn octave.in \ |
349 | 356 octave.ky octave.op octave.pg octave.rd octave.tp octave.vr \ |
357 octave.cps octave.fns octave.ins octave.kys octave.ops \ | |
358 octave.pgs octave.rds octave.tps octave.vrs octave.aux \ | |
3601 | 359 octave.log octave.toc \ |
7075 | 360 munge-texi$(BUILD_EXEEXT) munge-texi.o \ |
361 octave-a4.cp octave-a4.fn octave-a4.in \ | |
362 octave-a4.ky octave-a4.op octave-a4.pg octave-a4.rd octave-a4.tp octave-a4.vr \ | |
363 octave-a4.cps octave-a4.fns octave-a4.ins octave-a4.kys octave-a4.ops \ | |
364 octave-a4.pgs octave-a4.rds octave-a4.tps octave-a4.vrs octave-a4.aux \ | |
365 octave-a4.log octave-a4.toc \ | |
366 octave-smallbook.cp octave-smallbook.fn octave-smallbook.in \ | |
367 octave-smallbook.ky octave-smallbook.op octave-smallbook.pg octave-smallbook.rd octave-smallbook.tp octave-smallbook.vr \ | |
368 octave-smallbook.cps octave-smallbook.fns octave-smallbook.ins octave-smallbook.kys octave-smallbook.ops \ | |
369 octave-smallbook.pgs octave-smallbook.rds octave-smallbook.tps octave-smallbook.vrs octave-smallbook.aux \ | |
370 octave-smallbook.log octave-smallbook.toc | |
5866 | 371 .PHONY: mostlyclean clean |
152 | 372 |
5866 | 373 distclean: clean |
374 @$(subdir-for-command) | |
8873
e258715b2e78
fixes for clean targets in Makefiles
John W. Eaton <jwe@octave.org>
parents:
8839
diff
changeset
|
375 rm -f tags TAGS Makefile |
5866 | 376 .PHONY: distclean |
152 | 377 |
8873
e258715b2e78
fixes for clean targets in Makefiles
John W. Eaton <jwe@octave.org>
parents:
8839
diff
changeset
|
378 maintainer-clean: distclean clean-texi |
e258715b2e78
fixes for clean targets in Makefiles
John W. Eaton <jwe@octave.org>
parents:
8839
diff
changeset
|
379 rm -f DOC stmp-html $(FORMATTED) $(IMAGES) |
5422 | 380 rm -rf HTML |
5866 | 381 .PHONY: maintainer-clean |
152 | 382 |
3315 | 383 clean-texi: |
7075 | 384 rm -f $(SUB_TEXINFO) contributors.texi octave-a4.texi octave-smallbook.texi |
3315 | 385 .PHONY: clean-texi |
386 | |
387 dist: clean-texi all | |
6467 | 388 ln $(DISTFILES) ../../`cat ../../.fname`/doc/interpreter |
6798 | 389 for dir in $(DISTDIRS); do \ |
390 mkdir ../../`cat ../../.fname`/doc/interpreter/$$dir; \ | |
391 ln ../../doc/interpreter/$$dir/* ../../`cat ../../.fname`/doc/interpreter/$$dir; \ | |
392 done | |
5706 | 393 for dir in $(DISTSUBDIRS); do mkdir ../../`cat ../../.fname`/doc/interpreter/$$dir; $(MAKE) -C $$dir $@; done |
152 | 394 .PHONY: dist |