#!/usr/bin/make -f

PACKAGE = corkscrew

include debian/pod2man.mk
include debian/debian-autotools.mk

include /usr/share/dpkg/buildflags.mk
CFLAGS	+= -Wall -pedantic
LDFLAGS	+= -Wl,--as-needed
export CFLAGS LDFLAGS

man:
	# target: man - convert *.pod to manual page
	$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) \
	PODCENTER=Networking MANSECT=1 makeman

override_dh_auto_configure: man
	$(config-prepare)
	dh_auto_configure

override_dh_strip:
	$(config-restore)
	dh_strip

binary: binary-arch

%:
	dh $@

.PHONY: man

# End of file
