#!/usr/bin/make -f
# -*- makefile -*-

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

# To avoid running configure twice (because gnome-autogen.sh)
export NOCONFIGURE=yes

%:
	dh $@ --parallel --with=autoreconf

override_dh_auto_configure:
	dh_auto_configure -- --libexecdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)/cinnamon-settings-daemon

override_dh_autoreconf:
	dh_autoreconf --as-needed ./autogen.sh

override_dh_auto_test:
	# Disable test suite on build time

override_dh_install:
	dh_install --list-missing

override_dh_makeshlibs:
	# Disabled, no shared libraries here
