#!/usr/bin/make -f

# export DH_VERBOSE=1

PACKAGE = leafpad

man:
	$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) makeman

override_dh_auto_test:
	# Do not run tests. It would consider Quilt .pc/ directory as
	# a part of translation POTFILES.

install: build man
	# target: install
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	$(MAKE) install DESTDIR=$(CURDIR)/debian/$(PACKAGE)

binary-arch: install man
	# target: binary-arch -- Build architecture-dependent files
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installexamples
	dh_installmenu
	dh_installman
	dh_installchangelogs
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_makeshlibs
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-arch

%:
	dh $@

.PHONY: man binary binary-arch install

# End of file
