#!/usr/bin/make -f
export DH_VERBOSE=1
export DEB_BUILD_OPTIONS += noautodbgsym
export WAF=debian/waf-2.0.27

%:
	dh $@

override_dh_auto_clean:
	${WAF} clean || true
	rm -Rf debian/.waf3-* build
	rm -f .lock-waf_linux_build
	dh_auto_clean

override_dh_auto_configure:
	${WAF} configure --prefix=/usr --libdir=/usr/lib --enable-gl

override_dh_auto_build:
	${WAF} build

override_dh_auto_install:
	${WAF} install --destdir=debian/tmp
	rm -f debian/tmp/usr/lib/libntk*.a*
