#!/usr/bin/make -f

export DH_GOLANG_EXCLUDES := github.com/dgraph-io/badger/v4$
export DH_GOLANG_EXCLUDES_ALL := 0
export DH_GOLANG_INSTALL_EXTRA := fb/gen.sh pb/gen.sh

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

ifeq ($(DEB_HOST_ARCH_BITS),32)
override_dh_auto_test:
	-dh_auto_test
endif

execute_after_dh_auto_install:
	# Badger Integration test for value log GC.
	-rm -fv debian/tmp/usr/bin/testgc
