#!/usr/bin/make -f build3vers := $(shell py3versions -sv) export DEB_BUILD_MAINT_OPTIONS = hardening=+all DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk %: dh $@ --with python3 override_dh_auto_build: set -e && for i in $(build3vers); do \ python$$i setup.py build; \ done override_dh_auto_install: set -e && for i in $(build3vers); do \ python$$i setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-pykcs11; \ done override_dh_auto_clean: dh_clean make clean override_dh_auto_test: # tests can't run since SoftHSM is not installed and configured # tests will be run by autopkgtest on salsa.debian.org CI/CD