#!/usr/bin/make -f
build: build-stamp
build-stamp: 
	dh_testdir
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp install-stamp
	dh_clean 
	rm -f debian/files
	dh_clean debian/files

install: install-stamp
install-stamp: build-stamp
	dh_testdir
	dh_testroot
	dh_clean
	dh_installdirs
	install -o root -g root -m 0755 gbackground `pwd`/debian/gbackground/usr/bin/gbackground
	install -o root -g root -m 0755 gbackgroundD `pwd`/debian/gbackground/usr/share/gbackground/gbackgroundD
	install -o root -g root -m 0644 glade/gbackground.glade `pwd`/debian/gbackground/usr/share/gbackground/gbackground.glade
	install -o root -g root -m 0644 icon/config-xfree.xpm `pwd`/debian/gbackground/usr/share/pixmaps/config-xfree.xpm
	touch install-stamp

binary-indep: build install

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs 
	dh_installmenu
	dh_installdocs
	dh_installman debian/gbackground.1
	dh_link
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

source diff:
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

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