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

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


unpack: unpack-stamp

unpack-stamp:
	rm -fr unpack
	mkdir unpack
	tar -xzvf *.tar.gz -C unpack
	mv unpack/`ls unpack`/* unpack
	touch $@

build: build-stamp

build-stamp: unpack-stamp
	dh_testdir
	make -C unpack
	touch $@

clean:
	dh_testdir
	dh_testroot
	rm -fr unpack *-stamp
	dh_clean 

# Build architecture-independent files here.
binary-indep: build install

# Build architecture-dependent files here.
binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs unpack/ChangeLog
	dh_installdocs
	dh_install
	dh_installman
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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