Files
feedbackd/debian/rules
T
Guido Günther 708abf1e4a debian: Fix nodoc build
Don't try to install the dev docs in that case.
2023-09-01 13:06:08 +02:00

38 lines
857 B
Makefile
Executable File

#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
CONFIGURE_OPTS += -Dtests=false
endif
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
CONFIGURE_OPTS += -Dgtk_doc=true -Dman=true
endif
COMMON_PKG=feedbackd-common
docroot := $(CURDIR)/debian/tmp/usr/share/doc/
%:
dh $@ --builddirectory=_build
override_dh_installdocs:
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
mkdir -p $(docroot)/libfeedback-dev/libfeedback-0
mv $(docroot)/libfeedback-0 $(docroot)/libfeedback-dev/
endif
dh_installdocs
override_dh_auto_configure:
dh_auto_configure -- $(CONFIGURE_OPTS)
override_dh_installudev:
# Make sure all the symlink rules in 60 ran:
dh_installudev --priority=90
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
dbus-run-session ninja -C _build test
endif