#!/usr/bin/make -f
# -*- makefile -*-

export DH_VERBOSE=1
export DH_OPTIONS=-v

build: build-stamp

build-stamp:
	dh_testdir

clean:
	dh_clean

install:	build
	dh_prep
	#dh_installdirs /usr/sbin /usr/share/pyshared
	dh_installdirs /usr/sbin

	#cd $(CURDIR)/debian/iptables-converter/usr/share/pyshared && \
	#	cp $(CURDIR)/iptables_converter.py iptables_converter.py && \
	cd $(CURDIR)/debian/iptables-converter/usr/sbin && \
		cp $(CURDIR)/iptables_converter.py iptables-converter && \
		chmod 755 iptables-converter
	dh_lintian

# Build architecture-independent files here.
build-arch: build
build-indep: build

# Note that the following form is recommended however:

build-arch: build-stamp
build-indep: build-stamp
binary-indep: build install
	dh_installchangelogs
	dh_install
	dh_installdocs
	dh_installman --language=C man/*
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_python2
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure

