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

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- --with-pmdir=/usr/share/perl5

override_dh_installchangelogs:
	dh_installchangelogs src/perl/ChangeLog

override_dh_fixperms:
	dh_fixperms
	chmod -x debian/$(DEBPKGNAME)/usr/share/doc/vcftools/examples/*

get-orig-source:
	mkdir -p ../tarballs
	uscan --verbose --force-download --repack --compression xz --destdir=../tarballs --no-symlink

