#!/usr/bin/make -f

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)

%:
	dh $@

override_dh_auto_install:
	dh_auto_install
	rm --verbose $(TMP)/usr/share/perl5/Mojolicious/Plugin/README.pod
	rm --verbose $(TMP)/usr/share/man/man3/Mojolicious::Plugin::README.3pm

override_dh_auto_test:
	# skip leaky pipes test
	# https://github.com/jhthorsen/mojolicious-plugin-cgi/issues/6
	DEBIAN_BUILD=1 dh_auto_test
