#!/usr/bin/make -f #export DH_VERBOSE = 1 include /usr/share/dpkg/pkg-info.mk export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed export DEB_BUILD_MAINT_OPTIONS = hardening=+all CHANGELOG_DATE ?= $(shell LC_ALL=C date -u -d @$(SOURCE_DATE_EPOCH) +"%d %B %Y") DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) # workaround since grcc tries to write to the home directory when buildling GNU radio flow graph: export HOME=/tmp/tmpbuildhome %: dh $@ --no-parallel --with python3 --with numpy3 override_dh_auto_configure: dh_auto_configure -- -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" -DENABLE_DOXYGEN_PDF=ON # workaround since grcc tries to write to the home directory when buildling GNU radio flow graph: mkdir -p $(HOME)/.cache/grc_gnuradio override_dh_clean: dh_clean $(RM) debian/man/*.1 override_dh_installman: cd debian/man ; CHANGELOG_DATE="$(CHANGELOG_DATE)" ./genmanpages.sh dh_installman