#!/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.
# Handmodified by P. Frauenfelder for debhelper support, 5 Sept 1998

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp:
	dh_testdir

	xmkmf
	make

	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp

	xmkmf
	make clean
	
	rm Makefile

	dh_prep

install: build
	dh_testdir
	dh_testroot
	dh_prep 
	dh_installdirs

	make install DESTDIR=$(CURDIR)/debian/wmnet

binary-indep: build install
# 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 install
	dh_testdir
	dh_testroot
	dh_installchangelogs	Changelog
	dh_installdocs		README
	dh_installmenu
	dh_installman		wmnet.man
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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