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

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

DEVDIR=$(CURDIR)/debian/libwgdb-dev/

override_dh_auto_configure:
	dh_auto_configure -- --without-gcc-arch

override_dh_installexamples:
	dh_installexamples
	sed -i 's|"../Db/\(.\+\)"|<whitedb/\1>|' \
		$(DEVDIR)/usr/share/doc/libwgdb-dev/examples/demo.c \
		$(DEVDIR)/usr/share/doc/libwgdb-dev/examples/query.c

override_dh_fixperms:
	dh_fixperms
	chmod a-x $(DEVDIR)/usr/share/doc/libwgdb-dev/examples/dserve.c

%:
	dh $@ --with autoreconf

.PHONY: override_dh_auto_configure override_dh_installexamples \
	override_dh_fixperms
