#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

UBUNTU = $(shell dpkg-vendor --derives-from Ubuntu && echo yes)

%:
	dh $@

override_dh_auto_clean:
	rm -f data/lxrandr.desktop
	dh_auto_clean

override_dh_auto_configure:
	dh_auto_configure -- --enable-man

ifeq ($(UBUNTU),yes)
override_dh_install:
	dh_install -plxrandr debian/local/source_lxrandr.py usr/share/apport/package-hooks
endif

override_dh_strip:
	dh_strip --dbg-package=lxrandr-dbg
