commit 0bef66a641c9a172a46a2cf1a616f9b6efb35e9e
Author: Gergely Polonkai <gergely@polonkai.eu>
Date:   Sun Sep 28 12:15:36 2014 +0200

    Remove LZMA and BZ2 from GTK-Doc if we are compiling without them

diff --git a/docs/libyelp/Makefile.am b/docs/libyelp/Makefile.am
index 90b9dcb..4586fcc 100644
--- a/docs/libyelp/Makefile.am
+++ b/docs/libyelp/Makefile.am
@@ -19,6 +19,17 @@ GTKDOC_LIBS =					\
 HFILE_GLOB = $(top_srcdir)/libyelp/*.h
 CFILE_GLOB = $(top_srcdir)/libyelp/*.c
 IGNORE_HFILES = yelp-debug.h yelp-types.h
+IGNORE_CFILES =
+
+if !ENABLE_LZMA
+IGNORE_HFILES += $(top_srcdir)/libyelp/yelp-lzma-decompressor.h
+IGNORE_CFILES += $(top_srcdir)/libyelp/yelp-lzma-decompressor.c
+endif
+
+if !ENABLE_BZ2
+IGNORE_HFILES += $(top_srcdir)/libyelp/yelp-bz2-decompressor.h
+IGNORE_CFILES += $(top_srcdir)/libyelp/yelp-bz2-decompressor.c
+endif
 
 MKDB_OPTIONS = --output-format=xml --sgml-mode --name-space=yelp --ignore-files='yelp-debug.c yelp-debug.h yelp-types.c yelp-types.h'
 
