Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C23519BB0 for ; Sun, 14 Oct 2012 16:59:11 +0000 (UTC) Received: (qmail 46315 invoked by uid 500); 14 Oct 2012 16:59:11 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 46257 invoked by uid 500); 14 Oct 2012 16:59:11 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 46249 invoked by uid 99); 14 Oct 2012 16:59:11 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Oct 2012 16:59:11 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 40B1B44B9A; Sun, 14 Oct 2012 16:59:11 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: nslater@apache.org To: commits@couchdb.apache.org X-Mailer: ASF-Git Admin Mailer Subject: git commit: Finally got custom install hooks working for info files Message-Id: <20121014165911.40B1B44B9A@tyr.zones.apache.org> Date: Sun, 14 Oct 2012 16:59:11 +0000 (UTC) Updated Branches: refs/heads/docs a109b2e7e -> 92a85d8c7 Finally got custom install hooks working for info files Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/92a85d8c Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/92a85d8c Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/92a85d8c Branch: refs/heads/docs Commit: 92a85d8c77a3a49604e163715b398d9c01321257 Parents: a109b2e Author: Noah Slater Authored: Sun Oct 14 17:59:06 2012 +0100 Committer: Noah Slater Committed: Sun Oct 14 17:59:06 2012 +0100 ---------------------------------------------------------------------- configure.ac | 12 ++++++++++ share/doc/build/Makefile.am | 46 ++++++++++++++++++++++++------------- 2 files changed, 42 insertions(+), 16 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb/blob/92a85d8c/configure.ac ---------------------------------------------------------------------- diff --git a/configure.ac b/configure.ac index 2ad05d8..efebc80 100644 --- a/configure.ac +++ b/configure.ac @@ -585,6 +585,18 @@ Is GNU Texinfo installed?]) fi fi +AC_CHECK_PROG([HAS_INSTALLINFO], [install-info], [yes]) + +if test x${HAS_INSTALLINFO} = x; then + if test x${strictness_enabled} = xyes; then + AC_MSG_ERROR([Could not find the `install-info' executable. + +Is GNU Texinfo installed?]) + else + AC_MSG_WARN([You will be unable to install info documentation.]) + fi +fi + AC_ARG_VAR([ERL], [path to the `erl' executable]) AC_ARG_VAR([ERLC], [path to the `erlc' executable]) http://git-wip-us.apache.org/repos/asf/couchdb/blob/92a85d8c/share/doc/build/Makefile.am ---------------------------------------------------------------------- diff --git a/share/doc/build/Makefile.am b/share/doc/build/Makefile.am index a20210e..6860e76 100644 --- a/share/doc/build/Makefile.am +++ b/share/doc/build/Makefile.am @@ -41,9 +41,13 @@ SPHINXOPTS = \ # ----------------------------------------------------------------------------- -texinfo_files = texinfo/CouchDB.texi +info_name = CouchDB -pdf_files = latex/CouchDB.pdf.gz +info_file = texinfo/$(info_name) + +texinfo_file = texinfo/CouchDB.texi + +pdf_file = latex/CouchDB.pdf.gz html_files = \ html/_images/futon-createdb.png \ @@ -161,9 +165,11 @@ src_files = \ ../src/replication.rst \ ../src/ssl.rst + dist_localdoc_DATA = \ - $(texinfo_files) \ - $(pdf_files) + $(info_file) \ + $(texinfo_file) \ + $(pdf_file) nobase_dist_localdoc_DATA = $(html_files) @@ -176,30 +182,31 @@ EXTRA_DIST = \ $(src_files) \ html/.buildinfo -$(pdf_files): pdf +$(pdf_file): pdf $(html_files): html -$(texinfo_files): texinfo.stamp +$(info_file): info.stamp @if test -f $@; then :; else \ - rm -f texinfo.stamp; \ - $(MAKE) $(AM_MAKEFLAGS) texinfo.stamp; \ + rm -f info.stamp; \ + $(MAKE) $(AM_MAKEFLAGS) info.stamp; \ fi -texinfo.stamp: $(image_files) $(src_files) - @rm -f texinfo.tmp - @touch texinfo.tmp +info.stamp: $(image_files) $(src_files) + @rm -f info.tmp + @touch info.tmp if test -z "`which makeinfo`"; then \ $(top_srcdir)/build-aux/missing makeinfo; \ fi if test -n "`which sphinx-build`"; then \ sphinx-build -b texinfo $(SPHINXOPTS) $(builddir)/texinfo; \ + $(MAKE) -C texinfo info; \ else \ $(top_srcdir)/build-aux/missing sphinx-build; \ fi - @mv -f texinfo.tmp $@ + @mv -f info.tmp $@ -$(pdf_files): pdf.stamp +$(pdf_file): pdf.stamp @if test -f $@; then :; else \ rm -f pdf.stamp; \ $(MAKE) $(AM_MAKEFLAGS) pdf.stamp; \ @@ -243,13 +250,20 @@ html-local: $(MAKE) $(AM_MAKEFLAGS) html.stamp install-data-local: - $(MAKE) -C texinfo install-info; + $(INSTALL) -d $(DESTDIR)$(infodir) + $(INSTALL_DATA) $(info_file) $(DESTDIR)$(infodir)/$(info_name); + if test -n "`which install-info`"; then\ + install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$(info_name); \ + fi uninstall-local: - $(MAKE) -C texinfo uninstall-info; + rm -f $(infodir)/$(info_name) + if test -n "`which install-info`"; then\ + install-info --delete --info-dir=$(DESTDIR)$(infodir) $(info_name) \; + fi DISTCLEANFILES = \ - texinfo.stamp \ + info.stamp \ pdf.stamp \ html.stamp