#!/usr/bin/make -f

D := $(CURDIR)/debian/tmp

export PYBUILD_TEST_ARGS=--ignore tests/test_fixtures.py \
                         --ignore tests/test_flags.py \
                         --ignore tests/test_stepreporter.py \
                         --ignore tests/test_flashscript.py \
                         --ignore tests/test_util.py \
                         --ignore tests/test_docker.py
export SETUPTOOLS_SCM_PRETEND_VERSION=$(DEB_VERSION_UPSTREAM)

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_install:
	mkdir -p $(D)/usr/share/man/man1
	cp man/*.1 $(D)/usr/share/man/man1
	mkdir -p $(D)/usr/share/man/man5
	cp man/*.5 $(D)/usr/share/man/man5
	mkdir -p $(D)/usr/share/man/man7
	cp man/*.7 $(D)/usr/share/man/man7
