#!/usr/bin/make -f

#export DH_VERBOSE = 1

export GOCACHE=$(CURDIR)/debian/vendor
export GOPATH=$(CURDIR)/debian/vendor

%:
	dh $@ --buildsystem=golang

override_dh_auto_build:
	go build -o katana cmd/katana/main.go

override_dh_auto_install:
	dh_auto_install -- --no-source

override_dh_auto_test:
	# tests fail because the depends are missing.

override_dh_dwz:
	# Fails with
	# dwz: debian/katana/usr/bin/katana: Unknown debugging section .debug_addr
	# dh_dwz: error: dwz -- debian/katana/usr/bin/katana returned exit code 1
	# dh_dwz: error: Aborting due to earlier error
