#!/usr/bin/make -f
# $Id$

clean:
	dh_testdir
	dh_testroot
	dh_auto_clean
	# clean up unpacked tarball
	rm -f Build.PL CHANGES MANIFEST META.yml Makefile.PL README SIGNATURE TODO
	rm -rf lib
	# remove our own stamps
	rm -f build-stamp configure-stamp configure-stamp

configure:
configure-stamp:
	dh_testdir
	# unpack nested tarball
	tar --exclude=debian --strip-components=1 -xzvf ClamAV-Client-0.11.tar.gz 
	dh_auto_configure
	touch $@

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp: configure-stamp
	dh_testdir
	dh_auto_build
	touch $@
	
install: build-stamp
	dh_testdir
	dh_testroot
	dh_auto_install
	dh_link
	dh_strip
	dh_fixperms
	dh_installdocs
	dh_installchangelogs
	dh_compress
	dh_shlibdeps
	dh_perl
	dh_gencontrol
	dh_builddeb

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

# vi: set noet:
