#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

override_dh_auto_configure:
	dh_auto_configure \
		-- \
		-Dinstalled_tests=true \
		-Dmetrics=enabled \
		$(NULL)

override_dh_strip:
	dh_strip --dbgsym-migration='eos-updater-dbg (<< 3.0.12)'

# Don't start the services on install
override_dh_installsystemd:
	dh_installsystemd -peos-updater --no-start \
		eos-autoupdater.service \
		eos-update-server.service \
		eos-updater-flatpak-installer.service \
		eos-updater-flatpak-installer-fallback.service \
		$(NULL)
	dh_installsystemd -peos-updater \
		eos-autoupdater.timer \
		eos-update-server.socket \
		eos-updater-avahi.path \
		eos-updater-flatpak-installer-fallback.timer \
		$(NULL)

%:
	dh $@ --with gir,python3
