aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/Makefile
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2012-02-13 12:28:13 +0200
committerGuido Günther <agx@sigxcpu.org>2015-11-20 15:54:30 +0100
commit82999a8ae42477db4c7e2bc6dee7d5f1c3f6c6a0 (patch)
tree538924c802032842e4e75144d73e3be27291d222 /docs/Makefile
parent1fdb6976b3c32828afa2571cdcc95136f70f9b4f (diff)
docs: enable building html docs with docbook2html
This is useful if sgml2x package is not available. A step towards packaging and building gbp on non-Debian host distributions, e.g. Fedora or openSUSE. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'docs/Makefile')
-rw-r--r--docs/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/Makefile b/docs/Makefile
index 34a98eaa..e6a349f1 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -28,10 +28,18 @@ GBP_VERSION=../gbp/version.py
DEB_VERSION=$(shell sed -ne 's/^gbp_version="\([.a-z0-9~-]\+\)"/\1/p' $(GBP_VERSION))
CHANGELOG=../debian/changelog
+# Stuff to build docs outside Debian
+HAVE_SGML2X ?= 1
+GTK_DOC_CATALOG_FILE ?= /usr/share/sgml/gtk-doc/gtk-doc.cat
+
all: $(MANUAL) $(MANPAGES)
$(MANUAL): manual.sgml chapters/*.sgml manpages/*.sgml
+ifeq ($(HAVE_SGML2X),1)
docbook-2-html -s local $<
+else
+ docbook2html -d local-nosgml2x.dsl -c $(GTK_DOC_CATALOG_FILE) -o $(MANUAL) $<
+endif
cp /usr/share/gtk-doc/data/*.png $(MANUAL)
# We build manpages under 'buildxref/' just to get an updated cross-reference