#!/usr/bin/make -f

export DH_GOLANG_INSTALL_EXTRA := config/gitleaks.toml

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

execute_after_dh_auto_configure:
	cp -av debian/vendor _build/src/github.com/zricethezav/gitleaks

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test
endif

override_dh_auto_install:
	dh_auto_install -- --no-source
