#!/usr/bin/make -f

get-orig-source:
	@if [ -z "$(UPSTREAM_VERSION)" ]; then echo "Please run as .../debian/rules UPSTREAM_VERSION=xxx $@"; exit 1; fi
	wget -O "CUFlow-$(UPSTREAM_VERSION).tgz" "http://www.columbia.edu/acis/networks/advanced/CUFlow/CUFlow-$(UPSTREAM_VERSION).tgz"
	mv CUFlow-$(UPSTREAM_VERSION).tgz flowscan-cuflow_$(UPSTREAM_VERSION).orig.tar.gz

.PHONY: clean
clean: 
	dh_testdir
	dh_clean

.PHONY:	build build-arch build-indep
build:	build-arch build-indep
build-arch:
build-indep:
	# Nothing to do here.

.PHONY:	install install-arch install-indep
install: install-arch install-indep
install-arch: build-arch
install-indep: build-indep
	dh_testdir
	dh_testroot
	dh_prep
	dh_install		--indep
	dh_installdocs		--indep
	dh_installchangelogs	--indep
	dh_installexamples	--indep
	dh_link			--indep
	dh_installdeb		--indep

.PHONY:	binary binary-arch binary-indep
binary:	binary-arch binary-indep
binary-arch: install-arch
binary-indep: install-indep
	dh_testdir
	dh_testroot
	dh_compress		--indep
	dh_fixperms		--indep
	dh_md5sums		--indep
	dh_gencontrol		--indep
	dh_builddeb		--indep
