#!/usr/bin/make -f

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

%:
	dh $@

override_dh_auto_build:
	dh_auto_build
	# debugging. #829553 / https://github.com/plicease/FFI-Platypus/issues/67
	[ ! -e $(CURDIR)/include/ffi_platypus_probe.h ] || cat $(CURDIR)/include/ffi_platypus_probe.h

override_dh_installexamples:
	dh_installexamples
	sed -i '1s|^#!perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/*.pl
