#!/usr/bin/make -f

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
WAF = python3 ./waf

%:
	dh $@

override_dh_auto_configure:
	$(WAF) configure \
		--prefix=/usr \
		--libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
		--strict \
		--debug

override_dh_auto_build:
	$(WAF)

override_dh_auto_install:
	$(WAF) install --destdir=$(CURDIR)/debian/tmp

override_dh_auto_clean:
	$(WAF) distclean
	find -name "*.pyc" -delete
	find -name "__pycache__" | xargs rm -rf
	dh_auto_clean

override_dh_strip:
	dh_strip --dbgsym-migration='libpugl-dbg (<< 0~svn32+dfsg0-4~)'

# No tests available
override_dh_auto_test:
