Disable gtk-doc if we are not going to build libostree-doc

In particular this affects architecture-specific builds. Note that it
remains in Build-Depends (not Build-Depends-Indep) because it is also
needed for gtkdocize during dh_autoreconf.
This commit is contained in:
Simon McVittie committed 2017-10-16 10:15:51 +01:00
1 parent f5517cfac7
commit 50a43a9279
2 files changed
+17 -2

No files matched your search

+8 -2
View File
@@ -5,6 +5,8 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
# Some tests assert that we will see English strings
export LC_ALL=C.UTF-8
binaries := $(shell dh_listpackages)
%:
dh $@ --with=gir
@@ -21,11 +23,15 @@ configure_options = \
--with-systemdsystemunitdir=/lib/systemd/system \
$(NULL)
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
ifneq ($(filter libostree-doc,$(binaries)),)
configure_options += --enable-gtk-doc
configure_options += --enable-man
else
configure_options += --disable-gtk-doc
endif
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
configure_options += --enable-man
else
configure_options += --disable-man
endif