#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all BUILD_DATE = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "@$(SOURCE_DATE_EPOCH)") SPHINXOPTS := -D today=\"$(BUILD_DATE)\" %: dh $@ $(DH_ADDONS) build binary %-indep: DH_ADDONS=--with=sphinxdoc override_dh_auto_build-indep: $(MAKE) html SPHINXOPTS="$(SPHINXOPTS)" override_dh_auto_test-indep override_dh_auto_install-indep: execute_before_dh_auto_build: # blhc false positive: test/bin/ built statically with hardcoded LDFLAGS for speed and Valgrind @echo 'blhc: ignore-line-regexp: .* -o json_process json_process\.o \.\./\.\./src/\.libs/libjansson\.a' # blhc false positive: test/suites/api/ built statically with hardcoded LDFLAGS for speed and Valgrind @echo 'blhc: ignore-line-regexp: .* -o test_.* test_.*\.o \.\./\.\./\.\./src/\.libs/libjansson\.a'