#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export GOCACHE := $(CURDIR)/.gocache

%:
	dh $@ --with python3

override_dh_auto_build:
	$(MAKE) prefix=/usr build build-doc

override_dh_auto_install:
	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp prefix=/usr etcdir=/etc install install-doc install-conf

override_dh_python3:
	dh_python3 -p piuparts-master -p piuparts-slave /usr/share/piuparts --shebang=/usr/bin/python3
	dh_python3 -N piuparts-master -N piuparts-slave

override_dh_dwz:
	# Workaround for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933541
	# (this workaround can be dropped with debhelper from buster-backports)
	:
