#!/usr/bin/make -f
XPI_MODULE_VERS = $(shell dpkg-parsechangelog  | grep ^Version: | cut -f2 -d\ )
%:
	dh $@ --with xul-ext

override_dh_auto_build:
	dh_auto_build
	make xpi

override_dh_install:
	install-xpi -penigmail build/*.xpi

# ./configure is needed to create config/autoconf.mk when building from the git sources.
override_dh_auto_clean:
	./configure
	dh_auto_clean
