#!/usr/bin/make -f

export DH_GOLANG_EXCLUDES = server/cmd

%:
	dh $@ --builddirectory=debian/_build --buildsystem=golang --with=single-binary

# go builder only copies go files
# the build also needs modulus.asc (and .sig)
execute_before_dh_auto_build:
	cp -a server/backend/modulus.* debian/_build/src/github.com/rclone/go-proton-api/server/backend

override_dh_auto_test:
	dh_auto_test -- -timeout=20m
