#!/usr/bin/make -f
# based on the cvs2cl control file

installbin = install -g root -o root -m 755
installdata = install -g root -o root -m 644

build:
clean:
	dh_testdir
	dh_testroot
	dh_clean

	python setup.py clean --all

clean_dh:
	rm -f debian/submin2.*.debhelper

install: build clean_dh
	dh_testdir
	dh_testroot
	dh_installdirs

	python setup.py install \
        --root=$(CURDIR)/debian/submin2 \
	--prefix=/usr
	find $(CURDIR)/debian/submin2 -name ._\* -delete

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installman man/submin2-admin.1
	dh_pycentral
	dh_compress -X.py
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch: build install
binary: binary-arch binary-indep
