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

# Get full logs in tests
export G_MESSAGES_DEBUG=all

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with click

override_dh_auto_configure:
	dh_auto_configure -- \
		-DENABLE_MIRCLIENT=OFF \
		-DENABLE_COVERAGE=$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),OFF,ON) \
		-DENABLE_TESTS=$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),OFF,ON)

override_dh_click:
	dh_click --name lomiri-app-launch-desktop

execute_before_dh_installdeb:
	sed -e"s/#MULTIARCH#/$(DEB_HOST_MULTIARCH)/g" \
		debian/lomiri-app-launch.postinst.in \
		> debian/lomiri-app-launch.postinst

get-orig-source:
	uscan --noconf --force-download --rename --download-current-version --destdir=..
