#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
%:
	dh $@

override_dh_auto_configure:

override_dh_auto_build:
	make VERSION=$(DEB_VERSION_UPSTREAM) $(DEB_BUILD_ARCH)/dummy

override_dh_auto_install:
	install -d $$(pwd)/debian/tmp/opt/cni/bin/
	install -m 755 $$(pwd)/$(DEB_BUILD_ARCH)/* $$(pwd)/debian/tmp/opt/cni/bin
	install -d $$(pwd)/debian/tmp/etc/cni/net.d/
	touch $$(pwd)/debian/tmp/etc/cni/net.d/.keep
	install -d $$(pwd)/debian/tmp/docs
	install -m 644 $$(pwd)/docs/* $$(pwd)/debian/tmp/docs

override_dh_auto_clean:
	make VERSION=$(DEB_VERSION_UPSTREAM) clean
