#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

%:
	dh $@

override_dh_auto_build:
	# "go build" command originally comes from the upstream Dockerfile
	go build \
	    -mod vendor \
	    -ldflags "-X github.com/jpillora/chisel/share.BuildVersion=$(DEB_VERSION_UPSTREAM)" \
	    -o chisel
	dh_auto_build

# dh_dwz fails for go binaries which are already stripped.
#	see: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933541
override_dh_dwz:
