#!/usr/bin/make -f

BUILD_DIR := _build/src/github.com/notaryproject/notation-go

export DH_GOLANG_INSTALL_EXTRA := $(wildcard config/testdata/*/*.json)

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

execute_after_dh_auto_test:
	rm -rfv $(BUILD_DIR)/tmp/

# executable-not-elf-or-script
execute_before_dh_auto_install:
	chmod -v -x $(CURDIR)/$(BUILD_DIR)/plugin/testdata/plugins/foo/notation-foo
