#!/usr/bin/make -f

PACKAGE = $(shell dh_listpackages)

ifndef PERL
    PERL = /usr/bin/perl
endif

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

build:
	# Nothing to do.

clean:
	dh_testdir
	dh_testroot
	dh_clean build-stamp install-stamp

install: install-stamp
install-stamp:
	dh_testdir
	dh_testroot
	dh_clean -k
	
	install -D postfix-policyd-spf-perl $(TMP)/usr/sbin/postfix-policyd-spf-perl
	touch install-stamp

# Build architecture-independent files here:
binary-indep: build install
	dh_testdir
	dh_testroot
	
	dh_installdocs
	dh_installman debian/postfix-policyd-spf-perl.8
	dh_installchangelogs CHANGES
	
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_perl
	dh_gencontrol
	dh_md5sums
	dh_builddeb

# Build architecture-dependent files here:
binary-arch:
	# Nothing to do.

binary: binary-indep binary-arch

.PHONY: build clean binary-indep binary-arch binary install
