#!/usr/bin/make -f
#export DH_VERBOSE = 1

export HOME=$(CURDIR)/debian/home
export DH_VIRTUALENV_INSTALL_ROOT=/usr/share/

%:
	dh $@ --with python-virtualenv

execute_after_dh_virtualenv:
	cp -r $(CURDIR)/setup $(CURDIR)/debian/powershell-empire/usr/share/powershell-empire/lib/python3*/site-packages/
	find $(CURDIR)/debian/powershell-empire/usr/share/powershell-empire/ -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
	rm -rf $(CURDIR)/debian/powershell-empire/usr/share/powershell-empire/lib/python3*/site-packages/empire/test
	rm -rf $(CURDIR)/debian/powershell-empire/usr/share/powershell-empire/.gitignore

override_dh_strip:
	dh_strip --no-automatic-dbgsym

override_dh_dwz:
