#!/usr/bin/make -f

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

PACKAGE = torsocks
DESTDIR = $(CURDIR)/debian/$(PACKAGE)

%:
	dh $@ --with autoreconf

override_dh_auto_install:
	dh_auto_install
	dh_bash-completion
	rm $(DESTDIR)/usr/share/doc/torsocks/DEBUG
	rm $(DESTDIR)/usr/share/doc/torsocks/socks-extensions.txt
	rm $(DESTDIR)/usr/share/doc/torsocks/SOCKS5
	rm $(DESTDIR)/usr/share/doc/torsocks/ChangeLog
	rm $(DESTDIR)/usr/lib/torsocks/libtorsocks.la

override_dh_makeshlibs:
