#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
#export DH_OPTIONS=-v

SGML2MAN = xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl

%:
	dh $@

override_dh_auto_build:
	# The -f /dev/null is to ignore the existing Makefile in src/C, so that the
	# build flags are passed correctly
	( cd src/C ; $(MAKE) -f /dev/null bbox )
	( cd doc/src ; $(SGML2MAN) bbox.sgml && $(SGML2MAN) ps2eps.sgml )
	dh_auto_build
