#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

# build to tmp location even if it's a single package
DEB_DESTDIR = $(CURDIR)/debian/tmp

# specify shr-specs location
DEB_CONFIGURE_EXTRA_FLAGS := SPECS_PATH="/usr/share/shr-specs/"

# do not install useless changelog and readme files
DEB_INSTALL_CHANGELOGS_ALL := 
DEB_INSTALL_DOCS_ALL := 

# prepare build system
DEB_AUTOMAKE_ARGS = --add-missing --copy
DEB_AUTO_UPDATE_AUTOMAKE = 1.11
DEB_AUTO_UPDATE_ACLOCAL = 1.11
DEB_AUTO_UPDATE_AUTOCONF = 2.65
DEB_AUTO_UPDATE_AUTOHEADER = 2.65

binary-install/phoneuid::
	# script should be executable
	chmod a+x debian/phoneuid/usr/share/phoneuid/phoneui-wrapper.sh
	# remove unneeded changelog
	rm -f debian/phoneuid/usr/share/doc/phoneuid/changelog
