#!/usr/bin/make -f

# DH_VERBOSE := 1

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

include /usr/share/dpkg/default.mk

%:
	dh $@ --with python3

override_dh_python3:
	dh_python3
	# for some very strange reason dh_python3 is renaming cpp_functions.so to cpp_functions.cpython-36m-$(DEB_SOURCE).so
	# Just revert this!
	mv debian/$(DEB_SOURCE)/usr/lib/$(DEB_SOURCE)/$(DEB_SOURCE)/cpp_functions*.so debian/$(DEB_SOURCE)/usr/lib/$(DEB_SOURCE)/$(DEB_SOURCE)/cpp_functions.so
	# Did everything worked???
	find . -name "*.so"
