#!/usr/bin/make -f

# This file was automatically generated by stdeb 0.6.0 at
# Tue, 28 Jan 2014 15:45:25 +1100

# Unset the environment variables set by dpkg-buildpackage. (This is
# necessary because distutils is brittle with compiler/linker flags
# set. Specifically, packages using f2py will break without this.)
unexport CPPFLAGS
unexport CFLAGS
unexport CXXFLAGS
unexport FFLAGS
unexport LDFLAGS

#exports specified using stdeb Setup-Env-Vars:
#export DH_OPTIONS=--buildsystem=python_distutils

%:
	dh $@

override_dh_install:
	dh_install
	# Rename binary to match package name and move to sbin
	mv debian/stratum-mining-proxy/usr/bin/mining_proxy.py debian/stratum-mining-proxy/usr/sbin/stratum-mining-proxy

override_dh_clean:
	dh_clean
	# distribute module is downloaded during build
	rm -f distribute-*.egg distribute-*.tar.gz
	rm -rf stratum_mining_proxy.egg-info
