#!/usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.


build:
	dh_testdir	
	touch build

clean:
	dh_testdir
	rm -f build
	if [ -r Makefile ]; then make distclean ; fi
	rm -f `find . -name "*~"` config.cache config.status *.o
	rm -rf debian/tmp debian/files* core debian/substvars changelog.tmp
	rm -f target
	dh_clean

binary-indep: build
	dh_testroot
	dh_testdir
# There are no architecture-independent files to be uploaded
# generated by this package.  If there were any they would be
# made here.

binary-arch: build
	dh_testroot
	dh_testdir
	rm -rf debian/tmp
	install -d debian/tmp/usr/share/pathological
# Must have debmake installed for this to work. Otherwise please copy
# /usr/bin/debstd into the debian directory and change debstd to debian/debstd
	make install DESTDIR=./debian/tmp/
	touch --reference README changelog.tmp

	dh_installdirs
	dh_installdocs
	dh_installexamples
	dh_installchangelogs
	dh_installmenu
	dh_installcron
	dh_installmanpages -ppathological
	dh_movefiles
	dh_strip
	dh_compress
	dh_fixperms
	dh_shlibdeps
	dh_gencontrol
	dh_makeshlibs
	dh_installdeb
	dh_md5sums
	dh_builddeb

# Below here is fairly generic really

binary:		binary-indep binary-arch

.PHONY: binary binary-arch binary-indep clean
