#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_CFLAGS_MAINT_APPEND := -Wall
export DEB_CXXFLAGS_MAINT_APPEND := -Wall

configure: configure.in
	autoconf

override_dh_auto_clean:
	dh_auto_clean --verbose
	rm -vf po/*.gmo config.status sitecopy po/POTFILES po/stamp-po \
		configure config.log config.h po/Makefile.in
	find -name Makefile -delete

override_dh_auto_configure: configure
	dh_auto_configure --verbose -- \
		  --with-libxml2 \
		  --with-expat \
		  --with-included-expat=no \
		  --with-neon \
		  --with-included-neon=no \
		  --with-ssl=gnutls


override_dh_auto_install:
	dh_auto_install --verbose
	rm -rf $(CURDIR)/debian/sitecopy/usr/doc

%:
	dh $@ --with autotools-dev
