#!/usr/bin/make -f

DEB_BUILD_DIR := obj-$(DEB_HOST_GNU_TYPE)

%:
	dh $@ --buildsystem=cmake+ninja

override_dh_auto_configure:
	dh_auto_configure -- -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_WEB_APP=ON -DUSE_SYSTEM_NODEJS_MODULES=ON

override_dh_auto_test:
	# No tests configured

override_dh_install:
	dh_install

# #2125: ship per-user lemond.service DISABLED to avoid port conflicts with
# the system service in every --user session.
override_dh_installsystemduser:
	dh_installsystemduser --no-enable
