#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

CPPFLAGS += -DMATELOCALEDIR=\"/usr/share/locale\"

override_dh_auto_configure:
	dh_auto_configure -- --with-gtk-app --with-gnome-app

override_dh_installdocs:
	dh_installdocs -A README LISEZMOI HACKING

override_dh_auto_test:
	mkdir -p debian/tmp/locale/
	localedef -f UTF-8 -i en_US ./debian/tmp/locale/en_US.UTF-8/
	LOCPATH=$(CURDIR)/debian/tmp/locale/ \
	LANG=en_US.UTF-8 \
	LC_ALL=en_US.UTF-8 \
	dh_auto_test

%:
	dh $@ --parallel --with autoreconf
