#!/usr/bin/make -f
# -*- makefile -*-
# debian/rules for spice-vdagent

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

override_dh_auto_install:
	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp

override_dh_auto_configure:
	./configure --prefix=/usr\
                    --sysconfdir=/etc \
		    --localstatedir=/var \
		    --with-init-script=systemd \
		    --enable-pie=yes \
                    --with-session-info=systemd
%:
	dh $@ --with systemd,autoreconf

override_dh_install:
	dh_install --list-missing
# We cannot add this to the .link file because dh_link is called after
# dh_systemd_* helpers during normal build
	dh_link lib/systemd/system/spice-vdagentd.service lib/systemd/system/spice-vdagent.service
