#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

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

# Define package name for a one-stop change.
PACKAGE_NAME = PBPKG

# PREFIX for installation
export HEAD=$(CURDIR)/debian/$(PACKAGE_NAME)
export PREFIX=/usr
export CONFDIR=/etc
export SBINDIR=/usr/sbin
export MANDIR=$(PREFIX)/share/man
#export DOCDIR=$(PREFIX)/share/doc
export LIBDIR=$(PREFIX)/lib
export CACHEDIR=/var/cache/$(PACKAGE_NAME)
export PKGBUILDMINDI=true

configure:
# Nothing to configure in this package.

build: 
# Nothing to build in this package.

clean:
	dh_testdir
	dh_testroot
	dh_clean

install: 
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	# Build the installation tree:
	./install.sh

# Build architecture-independent files here.
binary-indep: install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: install
	dh_testdir
	dh_testroot
	dh_installchangelogs ChangeLog
	dh_installdocs
	dh_installexamples
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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