#! /usr/bin/make -f

override_dh_clean:
	rm -rf build
	py3clean .
	dh_clean

override_dh_auto_configure:
	dh_auto_configure -- -Db_lto=true

# Don't change systemd user units globally; each user must opt-in
override_dh_installsystemduser:

override_dh_installsystemd:
	dh_installsystemd --package=stne-dm \
		--no-stop-on-upgrade --no-restart-after-upgrade --no-start
	dh_installsystemd --remaining-packages

%:
	dh $@
