#!/usr/bin/make -f
# -*- makefile -*-

export PYBUILD_NAME=pyro5
export PYBUILD_TEST_ARGS = --ignore=tests/test_naming.py -k 'not testGetIP'

DOCDIR=$(CURDIR)/debian/pyro5-doc/usr/share/doc/pyro5-doc/
EXAMPLESDIR=$(CURDIR)/debian/pyro5-examples/usr/share/doc/pyro5/examples/

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_build:
	cd $(CURDIR)/docs/ && $(MAKE) html

execute_before_dh_fixperms:
	find $(EXAMPLESDIR) -type f -exec chmod a-x {} \;

override_dh_installinit:
	dh_installinit -ppython3-pyro5 --name=pyro5-ns --no-enable

override_dh_installsystemd:
	dh_installsystemd --name=pyro5-ns --no-enable --no-start
