#!/usr/bin/make -f
# -*- makefile -*-
#export DH_VERBOSE=1

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

# we actually do compile the examples, for sanity.
# but we don't want to install them as system binaries nor libraries
# they are installed in the correct place by dh_installexamples
override_dh_auto_install:
	cd _build && rm -rf bin/ src/git.torproject.org/pluggable-transports/goptlib.git/examples
	dh_auto_install

override_dh_auto_test:
	cp test_authcookie _build/src/gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib
	dh_auto_test
