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

PACKAGE := fiaif
BASE := $(CURDIR)/debian/$(PACKAGE)

# Uncomment this to turn off verbose mode.
#export DH_VERBOSE=1

build: build-stamp
build-stamp:
	dh_testdir
	touch $@

clean:
	dh_testdir
	dh_testroot
#       do nothing
	rm -f build-stamp
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	$(MAKE) install DESTDIR=$(BASE)
	$(MAKE) install-config DESTDIR=$(BASE)
	echo "Send-To: afu@fugmann.dhs.org" > $(BASE)/usr/share/bug/$(PACKAGE)/control
	install -p -m 0644 debian/lintian-overrides $(BASE)/usr/share/lintian/overrides/$(PACKAGE)


binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installdebconf
	dh_installdocs
	dh_installinit -n
	dh_installchangelogs changelog
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch: build install


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