#!/usr/bin/make -f

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

override_dh_auto_install:
	dh_auto_install
	mv debian/tango-entangle/etc/entangle/entangle.conf.dist debian/tango-entangle/etc/entangle/entangle.conf
	install -m 644 -D etc/ectl.bashcomp debian/tango-entangle/usr/share/bash-completion/completions/ectl

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. python3 -m sphinx -N -bman doc/ build/man

override_dh_auto_test:

# needed for bookworm compatibility!
override_dh_installsystemd:
	ln -s usr/lib debian/tango-entangle/lib
	dh_installsystemd
	rm debian/tango-entangle/lib

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