#! /usr/bin/make -f

PATCH=hppa

PACKAGE=kernel-patch-2.4.26-${PATCH}

####################

arch=$(shell dpkg --print-architecture)

topdir=$(shell pwd)
destdir=${topdir}/debian/tmp
docdir=${destdir}/usr/share/doc/${PACKAGE}
patches=patch-2.4.26-pa5 patch-makefile

build:
	dh_testdir

clean:
	dh_testdir
	dh_testroot

	rm -f hppa-2.4.26.patch
	dh_clean

binary-arch:	build

binary-indep:	build
	dh_testdir
	dh_testroot
	dh_clean -k

	cat $(patches) > hppa-2.4.26.patch
	mkdir $(destdir)
	dh_installkpatches
	dh_installchangelogs
	dh_installdocs

	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-arch binary-indep

.PHONY: binary binary-arch binary-indep clean checkroot
