#!/usr/bin/make -f
export DH_VERBOSE=1

clean:
	dh clean --buildsystem=cmake

build:
	dh build --buildsystem=cmake

install:
	dh install --buildsystem=cmake

binary:
	dh binary --buildsystem=cmake

binary-arch:
	dh binary-arch --buildsystem=cmake

binary-indep:
	dh binary-indep --buildsystem=cmake

override_dh_auto_configure:
	dh_auto_configure -- \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \
		-DPROJECT_VERSION=${VERSION}

override_dh_builddeb:
	-chmod 0755 debian/ukui-monitor-overlay/DEBIAN 2>/dev/null || true
	-chmod 0755 debian/.debhelper/ukui-monitor-overlay/dbgsym-root/DEBIAN 2>/dev/null || true
	dh_builddeb