From 60bb748ed33726eb0fed6081cf3141bfb3df30db Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 27 Feb 2022 16:56:38 +0100 Subject: d/control, d/rules: Honor 'nodoc' profile. In particular, exclude 'jq' and 'pandoc' from Build-Depends under nodoc profile. --- debian/rules | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index b4b5d0b..464067d 100755 --- a/debian/rules +++ b/debian/rules @@ -5,6 +5,11 @@ MAKEFLAGS = prefix=/usr sitelib=/usr/share/perl5 %: dh $@ +ifneq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS))) +override_dh_auto_build: + dh_auto_build -- all-nodoc +endif + override_dh_auto_test: # /dev/shm, the default, might be mounted with noexec dh_auto_test -- TMPDIR=/var/tmp -- cgit v1.2.3