#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

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

override_dh_auto_test:
	# Skip TestMountIndex - requires a working FUSE mount via fusermount
	# which is not available in Debian build chroots.
	dh_auto_test -- -test.skip="^TestMountIndex$$"

override_dh_auto_install:
	help2man -N \
		-n "desync" \
		--version-string='$(DEB_VERSION_UPSTREAM)' \
		-o debian/desync.1 \
		debian/_build/bin/desync
	dh_auto_install -- --no-source

override_dh_installman:
	dh_installman debian/desync.1
