comparison doc/interpreter/Makefile.am @ 19630:0e1f5a750d00

maint: Periodic merge of gui-release to default.
author John W. Eaton <jwe@octave.org>
date Tue, 20 Jan 2015 10:24:46 -0500
parents bf27e21f0bfb 446c46af4b42
children 4197fc428c7d
comparison
equal deleted inserted replaced
19626:37d37297acf8 19630:0e1f5a750d00
1 # Makefile for Octave's doc/interpreter directory 1 # Makefile for Octave's doc/interpreter directory
2 # 2 #
3 # Copyright (C) 1993-2013 John W. Eaton 3 # Copyright (C) 1993-2013 John W. Eaton
4 # 4 #
5 # This file is part of Octave. 5 # This file is part of Octave.
6 # 6 #
7 # Octave is free software; you can redistribute it and/or modify it 7 # Octave is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by the 8 # under the terms of the GNU General Public License as published by the
9 # Free Software Foundation; either version 3 of the License, or (at 9 # Free Software Foundation; either version 3 of the License, or (at
10 # your option) any later version. 10 # your option) any later version.
11 # 11 #
12 # Octave is distributed in the hope that it will be useful, but WITHOUT 12 # Octave is distributed in the hope that it will be useful, but WITHOUT
13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 # for more details. 15 # for more details.
16 # 16 #
17 # You should have received a copy of the GNU General Public License 17 # You should have received a copy of the GNU General Public License
18 # along with Octave; see the file COPYING. If not, see 18 # along with Octave; see the file COPYING. If not, see
19 # <http://www.gnu.org/licenses/>. 19 # <http://www.gnu.org/licenses/>.
20 20
21 include $(top_srcdir)/build-aux/common.mk 21 include $(top_srcdir)/build-aux/common.mk
24 24
25 ## Leading PATH_SEPARATOR required due to weak parsing by dvips (12/04/09) 25 ## Leading PATH_SEPARATOR required due to weak parsing by dvips (12/04/09)
26 TEXINPUTS := "$(PATH_SEPARATOR)$(srcdir)$(PATH_SEPARATOR)$(TEXINPUTS)$(PATH_SEPARATOR)" 26 TEXINPUTS := "$(PATH_SEPARATOR)$(srcdir)$(PATH_SEPARATOR)$(TEXINPUTS)$(PATH_SEPARATOR)"
27 export TEXINPUTS 27 export TEXINPUTS
28 28
29 ## Include custom texmf.cnf necessary to run @seealso macro 29 ## Include custom texmf.cnf necessary to run @seealso macro
30 TEXMFCNF := "..$(PATH_SEPARATOR)$(srcdir)/..$(PATH_SEPARATOR)$(TEXMFCNF)$(PATH_SEPARATOR)" 30 TEXMFCNF := "..$(PATH_SEPARATOR)$(srcdir)/..$(PATH_SEPARATOR)$(TEXMFCNF)$(PATH_SEPARATOR)"
31 export TEXMFCNF 31 export TEXMFCNF
32 32
33 dist_man_MANS = \ 33 dist_man_MANS = \
34 mkoctfile.1 \ 34 mkoctfile.1 \
104 IMAGES = \ 104 IMAGES = \
105 $(BUILT_IMAGES) \ 105 $(BUILT_IMAGES) \
106 $(JAVA_IMAGES) 106 $(JAVA_IMAGES)
107 107
108 ## FIXME: JAVA_IMAGES will eventually need to be added to the HTML build. 108 ## FIXME: JAVA_IMAGES will eventually need to be added to the HTML build.
109 ## It will require a different Makefile rule later because 109 ## It will require a different Makefile rule later because
110 ## JAVA_IMAGES live in a subdir rather than in the current directory. 110 ## JAVA_IMAGES live in a subdir rather than in the current directory.
111 HTMLDIR_IMAGES = $(addprefix octave.html/, $(IMAGES_PNG)) 111 HTMLDIR_IMAGES = $(addprefix octave.html/, $(IMAGES_PNG))
112 112
113 LOGOS = \ 113 LOGOS = \
114 octave_logo.eps \ 114 octave_logo.eps \
196 ## The texi2dvi script (used to create both PDF and DVI output formats) 196 ## The texi2dvi script (used to create both PDF and DVI output formats)
197 ## uses some fixed temporary file names. In order to avoid a race condition 197 ## uses some fixed temporary file names. In order to avoid a race condition
198 ## the DVI and PDF builds are forced to run serially through a Makefile rule. 198 ## the DVI and PDF builds are forced to run serially through a Makefile rule.
199 octave.pdf: octave.dvi 199 octave.pdf: octave.dvi
200 200
201 # Prevent packaging of distribution unless all libraries 201 # Prevent packaging of distribution unless all libraries
202 # necessary to create documentation are present 202 # necessary to create documentation are present
203 dist-hook: 203 dist-hook:
204 @$(GREP) '#define HAVE_COLAMD 1' $(top_builddir)/config.h > /dev/null || { echo "Documentation creation requires missing COLAMD library. Cannot package distribution!" ; exit 1; } 204 @$(GREP) '#define HAVE_COLAMD 1' $(top_builddir)/config.h > /dev/null || { echo "Documentation creation requires missing COLAMD library. Cannot package distribution!" ; exit 1; }
205 @$(GREP) '#define HAVE_CHOLMOD 1' $(top_builddir)/config.h > /dev/null || { echo "Documentation creation requires missing CHOLMOD library. Cannot package distribution!" ; exit 1; } 205 @$(GREP) '#define HAVE_CHOLMOD 1' $(top_builddir)/config.h > /dev/null || { echo "Documentation creation requires missing CHOLMOD library. Cannot package distribution!" ; exit 1; }
206 @$(GREP) '#define HAVE_UMFPACK 1' $(top_builddir)/config.h > /dev/null || { echo "Documentation creation requires missing UMFPACK library. Cannot package distribution!" ; exit 1; } 206 @$(GREP) '#define HAVE_UMFPACK 1' $(top_builddir)/config.h > /dev/null || { echo "Documentation creation requires missing UMFPACK library. Cannot package distribution!" ; exit 1; }
256 %.scheck: %.texi 256 %.scheck: %.texi
257 $(srcdir)/doccheck/spellcheck $< > $@-t 257 $(srcdir)/doccheck/spellcheck $< > $@-t
258 mv $@-t $@ 258 mv $@-t $@
259 [ -s $@ ] || rm -f $@ 259 [ -s $@ ] || rm -f $@
260 260
261 spellcheck: $(SPELLCHECK_FILES) 261 spellcheck: $(SPELLCHECK_FILES)
262 @if ls *.scheck >/dev/null 2>&1 ; then \ 262 @if ls *.scheck >/dev/null 2>&1 ; then \
263 echo "Spellcheck failed"; \ 263 echo "Spellcheck failed"; \
264 echo "Review the following files:"; \ 264 echo "Review the following files:"; \
265 ls *.scheck ; \ 265 ls *.scheck ; \
266 exit 1 ; \ 266 exit 1 ; \