d/rules: Fix autoreconf during nodoc builds by providing a stub gtkdocize
authorSimon McVittie <smcv@debian.org>
Sun, 31 Dec 2023 15:46:49 +0000 (15:46 +0000)
committerSimon McVittie <smcv@debian.org>
Sun, 31 Dec 2023 15:46:49 +0000 (15:46 +0000)
debian/rules

index c967204271e4c815d0012c1ed7ae251c917d57f9..6095fef48c5cdb1ce2abab10e6a756496a1ed1a6 100755 (executable)
@@ -8,7 +8,11 @@ binaries := $(shell dh_listpackages)
        dh $@ --with=gir
 
 override_dh_autoreconf:
-       env NOCONFIGURE=1 dh_autoreconf ./autogen.sh
+       mkdir -p debian/tmp-path
+ifneq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
+       ln -fns /bin/true debian/tmp-path/gtkdocize
+endif
+       env NOCONFIGURE=1 PATH=$(CURDIR)/debian/tmp-path:$(PATH) dh_autoreconf ./autogen.sh
 
 configure_options = \
        --enable-installed-tests \