#!/usr/bin/make -f

BUILDHOME = $(CURDIR)/debian/build

%:
	dh $@

override_dh_install:
	# XXX need script to create this from control file, but this package does
	# not have perl6 module dependencies anyway
	touch debian/perl6-zef.p6deps
	dh_install

override_dh_auto_test:
# this check can be removed for Debhelper compat level 13 or greater
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	mkdir -p $(BUILDHOME)
	HOME=$(BUILDHOME) prove6 -l
endif
