#!/usr/bin/make -f

PACKAGE = pngcheck

include debian/debian-compile.mk

CFLAGS += -DUSE_ZLIB
LIBS	= -lz

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

override_dh_auto_build: man
	gcc $(CFLAGS) -o $(PACKAGE) $(PACKAGE).c $(LIBS)

install: build
	# target: install
	dh_testdir
	dh_prep
	dh_install

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

binary: binary-arch

%:
	dh $@

.PHONY: man install binary binary-arch

# End of file
