Code

Add make rules to install documentation from the release branch
authorJonas Fonseca <fonseca@diku.dk>
Sat, 21 Nov 2009 02:27:52 +0000 (21:27 -0500)
committerJonas Fonseca <fonseca@diku.dk>
Sat, 21 Nov 2009 02:27:52 +0000 (21:27 -0500)
INSTALL
Makefile

diff --git a/INSTALL b/INSTALL
index a79a3d5b0e6d2e500be8bff9d31e82d7b41ad6c6..c762a8a207b41019f0a8bfe6fed5e15208cde334 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -10,7 +10,12 @@ The quick and simple way to install tig with documentation is to run:
        $ make
        $ make install install-doc
 
-Optionally, you can use the `configure` script to detect library location:
+From tig's git repository it is also possible to install documentation directly
+from the release branch to avoid installing the documentation tool chain:
+
+       $ make install-release-doc
+
+Optionally, you can use the `configure` script to detect dependencies:
 
        $ ./configure
        $ make
@@ -49,7 +54,7 @@ configure script and building documentation:
 |Tool                          |Description
 |autoconf                      |Contains autoreconf for generating configure
                                 from configure.ac.
-|asciidoc (>= 8.0)             |Generates HTML and (DocBook) XML from text.
+|asciidoc (>= 8.4)             |Generates HTML and (DocBook) XML from text.
 |xmlto                         |Generates manpages and chunked HTML from XML.
 |DocBook XSL (>= 1.72.0)       |Used by xmlto for building manpages.
 |DocBook (DSSL/Jade) tools     |Generates PDF from XML.
index 02d84dc0cd0420cb47448b9fa26668783f8db45a..85fe34567b779a5f6180cf9f55a0dbade7ceefb3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -85,6 +85,12 @@ install-doc-man: doc-man
                $(RM) "$$doc+"; \
        done
 
+install-release-doc-man:
+       GIT_INDEX_FILE=.tmp-doc-index git read-tree release
+       GIT_INDEX_FILE=.tmp-doc-index git checkout-index -f --prefix=./ $(MANDOC)
+       rm -f .tmp-doc-index
+       $(MAKE) install-doc-man
+
 install-doc-html: doc-html
        mkdir -p $(DESTDIR)$(docdir)/tig
        for doc in $(HTMLDOC); do \
@@ -95,7 +101,14 @@ install-doc-html: doc-html
                $(RM) "$$doc+"; \
        done
 
+install-release-doc-html:
+       GIT_INDEX_FILE=.tmp-doc-index git read-tree release
+       GIT_INDEX_FILE=.tmp-doc-index git checkout-index -f --prefix=./ $(HTMLDOC)
+       rm -f .tmp-doc-index
+       $(MAKE) install-doc-html
+
 install-doc: install-doc-man install-doc-html
+install-release-doc: install-release-doc-man install-release-doc-html
 
 clean:
        $(RM) -r $(TARNAME) *.spec tig-*.tar.gz tig-*.tar.gz.md5