#!/usr/bin/make -f

export GODEBUG=x509ignoreCN=0

%:
	dh $@ --builddirectory=_build --buildsystem=golang --with=golang

override_dh_auto_install:
	dh_auto_install -- --no-source
	# remove bench binary: only for tests
	rm debian/chisel/usr/bin/bench

override_dh_auto_test:
	cp -r test/e2e/tls $(CURDIR)/_build/src/github.com/jpillora/chisel/test/e2e
	dh_auto_test
	rm -r $(CURDIR)/_build/src/github.com/jpillora/chisel/test/e2e/tls
