#!/usr/bin/make -f

#export DH_VERBOSE = 1
export PYBUILD_NAME=grokmirror

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_build:
	dh_auto_build
	# Regen man pages
	rst2man man/grok-bundle.1.rst man/grok-bundle.1
	rst2man man/grok-dumb-pull.1.rst man/grok-dumb-pull.1
	rst2man man/grok-fsck.1.rst man/grok-fsck.1
	rst2man man/grok-manifest.1.rst man/grok-manifest.1
	rst2man man/grok-pi-piper.1.rst man/grok-pi-piper.1
	rst2man man/grok-pull.1.rst man/grok-pull.1

override_dh_compress:
	dh_compress -X.conf -X.rst

override_dh_installsystemd:
	dh_installsystemd --name=grok-fsck@
	dh_installsystemd --name=grok-pull@
