#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --buildsystem=cmake

override_dh_auto_configure:
	dh_auto_configure -- \
		-DMUSTACHE_BUILD_CLI=OFF \
		-DMUSTACHE_ENABLE_JSON=ON \
		-DMUSTACHE_ENABLE_YAML=ON

override_dh_makeshlibs:
	dh_makeshlibs -V

override_dh_auto_test:
	# the "spec" test needs the mustache/spec submodule, which the release
	# archive does not include
	dh_auto_test -- ARGS+=-E ARGS+='^spec$$'
