#!/usr/bin/make -f

# This file was automatically generated by stdeb 0.6.0 at
# Sun, 24 Apr 2011 09:30:52 +0000

# 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

%:
	dh $@ --with python2 

override_dh_auto_install: 
	python setup.py install --root=debian/exabgp --install-layout=deb --install-data=/ --install-lib=/usr/share/exabgp/lib/3.1.9 --install-scripts=/usr/sbin
	dh_installdirs
	rm $(CURDIR)/debian/exabgp/etc/exabgp/*
	install -m 644 $(CURDIR)/debian/exabgp.conf $(CURDIR)/debian/exabgp/etc/exabgp/exabgp.conf
	install -m 644 $(CURDIR)/debian/exabgp.1 $(CURDIR)/debian/exabgp/usr/share/man/man1
	dh_python2 

override_dh_auto_build:
	
override_dh_auto_clean:
	python setup.py clean --all
	dh_clean
