#!/usr/bin/make -f

build: build-stamp
build-stamp:
	dh build
	touch build-stamp

override_dh_auto_configure:
	dh_auto_configure -- --with-unique

clean:
	dh clean

install: build install-stamp
install-stamp:
	dh install
	# upstream does not ship the XPM yet and won't install it by default
	# anyway as it's pretty much specific to Debian
	mkdir "$(CURDIR)/debian/gobby-0.5/usr/share/pixmaps"
	cp "$(CURDIR)/debian/gobby-0.5.xpm" \
	   "$(CURDIR)/debian/gobby-0.5/usr/share/pixmaps"
	touch install-stamp

binary-arch: install
	dh binary-arch

binary-indep: install
	dh binary-indep

override_dh_strip:
	dh_strip -a --dbg-package=gobby-0.5-dbg

binary: binary-arch binary-indep

