#!/usr/bin/make -f

#export DH_VERBOSE=1

PACKAGE = jpegjudge
ORIGBIN = judge

include debian/debian-vars.mk

install: build
	# target: install
	dh_testdir
	dh_testroot
	$(INSTALL_BIN) -D $(ORIGBIN) $(BINDIR)/$(PACKAGE)
	$(INSTALL_DATA) -D $(ORIGBIN).1 $(MAN1DIR)/$(PACKAGE).1

binary-arch: build install
	# target: binary-arch -- Build architecture-dependent files
	$(config-delete)
	dh_testdir
	dh_testroot
	dh_install
	dh_installdocs
	# remove manual page in text format
	rm $(PKGDOCDIR)/judge.txt
	dh_installexamples
	dh_installchangelogs
	dh_installman
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-arch

%:
	dh $@

.PHONY: install binary-arch binary

# End of file
