#!/usr/bin/make -f

export IKIWIKI_TEST_ASSUME_MODERN_DISCOUNT=1
export LC_ALL=C.UTF-8
export TZ=UTC

%:
	dh $@

override_dh_auto_configure:
	# keeps it out of /usr/local
	dh_auto_configure -- PREFIX=/usr

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	env -u LD_PRELOAD dh_auto_test
endif

override_dh_compress:
	# avoid compressing files in the doc wiki
	dh_compress -Xhtml

override_dh_auto_clean:
	# distclean moans about MANIFEST, this is quieter
	if [ -e Makefile ]; then $(MAKE) realclean; fi
