#!/usr/bin/gmake -f
# This file is public domain software, originally written by Joey Hess.

# Uncomment this to turn on verbose mode. 
export DH_VERBOSE=1
webminmod = webmin-shelfctl

build:

clean:
	dh_clean

install:
	dh_testdir
	dh_testroot

binary-indep: install
	dh_testdir
	dh_testroot
	dh_install
	# fix customizations
	find debian/$(webminmod)/usr/share/webmin/ -name "\.git*" -exec rm -rf {} +
#	(find debian/$(webminmod)/usr/share/webmin/ -name '*.cgi' ; find debian/$(webminmod)/usr/share/webmin/ -name '*.pl') | perl perlpath.pl /usr/bin/perl -
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep

.PHONY: clean build binary-indep binary install
