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

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- \
		--libdir=\$${prefix}/lib \
		$(shell dpkg-buildflags --export=configure)

override_dh_auto_build:
	dh_auto_build
	cd po; intltool-update --verbose --pot

override_dh_install:
	rm debian/pidgin-otr/usr/lib/pidgin/*.la
	dh_install --fail-missing -X.la

# The "shared" library we ship is not managed by ldconfig and friends.
override_dh_makeshlibs:
	true
