Description: Always install the man page. For Debian, this is in the main package so we want to build it even on a non-indep build. It's pre-generated so doesn't rely on emacs (etc).
Author: Iain Lane <iain.lane@canonical.com>
Forwarded: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845539

Index: b/Makefile.am
===================================================================
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,16 +3,13 @@
 ACLOCAL_AMFLAGS = -I m4
 AM_DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-introspection --enable-hkl3d
 
-SUBDIRS = hkl
+SUBDIRS = hkl Documentation
 if HKL3D
 SUBDIRS += hkl3d data
 endif
 if GUI
 SUBDIRS += gui
 endif
-if HKL_DOC
-SUBDIRS += Documentation
-endif
 SUBDIRS += tests
 if CONTRIB
 SUBDIRS += contrib
Index: b/Documentation/Makefile.am
===================================================================
--- a/Documentation/Makefile.am
+++ b/Documentation/Makefile.am
@@ -1,7 +1,8 @@
-SUBDIRS=api figures sphinx
-
 dist_man_MANS = ghkl.1
 
+if HKL_DOC
+SUBDIRS=api figures sphinx
+
 AM_LDFLAGS = $(top_builddir)/hkl/libhkl.la
 
 dist_html_DATA=hkl.html
@@ -24,3 +25,4 @@
 	sensible-browser $(builddir)/hkl.html
 
 .PHONY: doc-edit doc-show
+endif
