changeset 9908:5221eff3ec02

eliminate doc/conf.texi
author John W. Eaton <jwe@octave.org>
date Fri, 04 Dec 2009 03:20:39 -0500
parents 1020d800d342
children f8a5863ae243
files doc/ChangeLog doc/Makefile.am doc/conf.texi.in doc/interpreter/Makefile.am doc/interpreter/octave.texi doc/liboctave/Makefile.am doc/liboctave/liboctave.texi
diffstat 7 files changed, 36 insertions(+), 53 deletions(-) [+]
line wrap: on
line diff
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,3 +1,23 @@
+2009-12-04  John W. Eaton  <jwe@octave.org>
+
+	* interpreter/octave.texi: Include version.texi instead of conf.texi.
+	* interpreter/Makefile.am (../conf.texi): Delete rule.
+	(octave_TEXINFOS): Delete ../conf.texi from the list.
+	($(srcdir)/octave.info octave.dvi octave.pdf octave.html):
+	Remove duplicate $(octave_TEXINFOS) dependency.
+	Depend on $(srcdir)/version.texi.
+
+	* liboctave/liboctave.texi: Include version.texi instead of conf.texi.
+	* liboctave/Makefile.am (../conf.texi): Delete rule.
+	(dist_liboctave_TEXINFOS): Delete ../conf.texi from the list.
+	(.NOTPARALLEL): Correct spelling of target.
+	($(srcdir)/liboctave.info liboctave.dvi liboctave.html liboctave.pdf):
+	Depend on $(srcdir)/version.texi
+
+	* conf.texi.in: Delete.
+	* Makefile.am: Delete rules for conf.texi.
+	(.NOTPARALLEL): New target.
+
 2009-12-03  John W. Eaton  <jwe@octave.org>
 
 	* doc/Makefile.am (MUNGED_TEXI_SRC): Define as explicit list.
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -26,22 +26,13 @@
 EXTRA_DIST = \
   Makefile.am \
   ChangeLog \
-  conf.texi.in \
   texinfo.tex \
   texmf.cnf
 
-DISTCLEANFILES = conf.texi
-
 SUBDIRS = . faq interpreter liboctave refcard
 
-all-local: conf.texi
-
-conf.texi: conf.texi.in Makefile
-	@echo "making $@ from $<"
-	@$(SED) < $< \
-	  -e "s|%OCTAVE_VERSION%|${version}|" > $@-t
-	$(simple_move_if_change_rule)
-
 ../BUGS ../INSTALL.OCTAVE:
 	$(MAKE) -C interpreter ../$@
 .PHONY: ../BUGS ../INSTALL.OCTAVE
+
+.NOTPARALLEL:
deleted file mode 100644
--- a/doc/conf.texi.in
+++ /dev/null
@@ -1,20 +0,0 @@
-@c Copyright (C) 1996, 1997, 2006, 2007 John W. Eaton
-@c
-@c This file is part of Octave.
-@c
-@c Octave is free software; you can redistribute it and/or modify it
-@c under the terms of the GNU General Public License as published by the
-@c Free Software Foundation; either version 3 of the License, or (at
-@c your option) any later version.
-@c 
-@c Octave is distributed in the hope that it will be useful, but WITHOUT
-@c ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-@c FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
-@c for more details.
-@c 
-@c You should have received a copy of the GNU General Public License
-@c along with Octave; see the file COPYING.  If not, see
-@c <http://www.gnu.org/licenses/>.
-
-@set OCTAVE_MANUAL
-@set VERSION %OCTAVE_VERSION%
--- a/doc/interpreter/Makefile.am
+++ b/doc/interpreter/Makefile.am
@@ -139,22 +139,18 @@
 info_TEXINFOS = octave.texi
 
 octave_TEXINFOS = \
-  ../conf.texi \
   contributors.texi \
   $(MUNGED_TEXI_SRC)
 
-../conf.texi:
-	$(MAKE) -C .. conf.texi
-
-$(srcdir)/octave.info octave.dvi octave.pdf octave.html: $(octave_TEXINFOS) $(octave_TEXINFOS) $(EXAMPLE_FILES)
+$(srcdir)/octave.info octave.dvi octave.html octave.pdf: $(srcdir)/version.texi $(octave_TEXINFOS) $(EXAMPLE_FILES)
 
 $(srcdir)/octave.info: $(IMAGES_TXT)
 
 octave.dvi octave.ps: $(IMAGES_EPS)
 
-octave.pdf: $(IMAGES_PDF)
+octave.html: $(IMAGES_PNG)
 
-octave.html: $(IMAGES_PNG)
+octave.pdf: $(IMAGES_PDF)
 
 all-local: dvi html pdf ps doc-cache
 
@@ -215,4 +211,4 @@
 
 MAINTAINERCLEANFILES = $(IMAGES)
 
-.NOPARALLEL:
+.NOTPARALLEL:
--- a/doc/interpreter/octave.texi
+++ b/doc/interpreter/octave.texi
@@ -66,11 +66,10 @@
 
 @defindex op
 
-@c Things like the Octave version number are defined in conf.texi.
-@c This file doesn't include a chapter, so it must not be included
-@c if you want to run the Emacs function texinfo-multiple-files-update.
-
-@include conf.texi
+@c The version.texi file doesn't include a chapter, so it must not be
+@c included if you want to run the Emacs function
+@c texinfo-multiple-files-update.
+@include version.texi
 
 @settitle GNU Octave
 
--- a/doc/liboctave/Makefile.am
+++ b/doc/liboctave/Makefile.am
@@ -34,7 +34,6 @@
 info_TEXINFOS = liboctave.texi
 
 dist_liboctave_TEXINFOS = \
-  ../conf.texi \
   array.texi \
   bugs.texi \
   cp-idx.texi \
@@ -55,11 +54,10 @@
   quad.texi \
   range.texi
 
-../conf.texi:
-	$(MAKE) -C .. conf.texi
-
 all-local: dvi html pdf ps
 
 EXTRA_DIST = liboctave.dvi liboctave.html liboctave.pdf liboctave.ps
 
+$(srcdir)/liboctave.info liboctave.dvi liboctave.html liboctave.pdf: $(srcdir)/version.texi
+
 .NOTPARALLEL:
--- a/doc/liboctave/liboctave.texi
+++ b/doc/liboctave/liboctave.texi
@@ -47,11 +47,10 @@
 
 @defindex op
 
-@c Things like the Octave version number are defined in conf.texi.
-@c This file doesn't include a chapter, so it must not be included
-@c if you want to run the Emacs function texinfo-multiple-files-update.
-
-@include conf.texi
+@c The version.texi file doesn't include a chapter, so it must not be
+@c included if you want to run the Emacs function
+@c texinfo-multiple-files-update.
+@include version.texi
 
 @settitle Octave C++ Classes