#!/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.

package=nvram

build:
	dh_testdir
	make
	touch build

clean:
	dh_testdir
	dh_testroot
	-make clean
	dh_clean `find . -name "*~"` build

binary-indep: build
# 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_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	install -d debian/tmp/usr/sbin debian/tmp/usr/share/man/man8
	make install PREFIX=`pwd`/debian/tmp/usr \
	             MANDIR=`pwd`/debian/tmp/usr/share/man
	dh_installdocs
	dh_installchangelogs
	dh_installmanpages
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_installdeb
	#dh_du
	dh_md5sums
	dh_builddeb


binary:		binary-indep binary-arch

.PHONY: binary binary-arch binary-indep clean 
