#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/architecture.mk

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- \
		--enable-filter \
		--enable-reverse \
		--enable-upstream \
		--enable-xtinyproxy
#		--enable-xtinyproxy ac_cv_path_GPERF=no


override_dh_auto_install:
	dh_auto_install
	cp -a $(CURDIR)/debian/tinyproxy.conf $(CURDIR)/debian/tmp/etc/tinyproxy
	cp -a $(CURDIR)/debian/filter $(CURDIR)/debian/tmp/etc/tinyproxy

override_dh_missing:
	dh_missing --fail-missing

override_dh_auto_test:
	

override_dh_auto_clean:
	dh_auto_clean
	rm -rf $(CURDIR)/env

get-orig-source:
	uscan --noconf --force-download --rename --download-current-version --destdir=..
