#!/usr/bin/make -f

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

%:
	dh $@


override_dh_auto_clean:
	dh_auto_clean
	rm -rf plugins/dir


override_dh_auto_configure:
	CFLAGS="$(CFLAGS)"
	LDFLAGS="-Wl,-z,defs"
	./configure \
		--host=$(DEB_HOST_GNU_TYPE) \
		--build=$(DEB_BUILD_GNU_TYPE) \
		--prefix=/usr \
		--mandir=\$${prefix}/share/man \
		--infodir=\$${prefix}/share/info \
		--enable-icp \
		--without-ssl \
		--with-gnutls \
		--with-libidn \	


override_dh_auto_test:

override_dh_auto_install:
	dh_auto_install
	# Getting rid of unneeded *.la
	find $(CURDIR)/debian/echoping -name \*.la | xargs rm -fv
