#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

include /usr/share/dpkg/architecture.mk

# Use a triplet-prefixed pkg-config to solve #853882
export PKG_CONFIG=$(DEB_HOST_GNU_TYPE)-pkg-config

%:
	dh $@ --no-parallel

override_dh_missing:
	# remove xchat plugins, they uses the XChat 1.x Plugin
	# Interface that became obsolete decades ago.
	rm -f debian/*/usr/lib/zh-autoconvert/xchat-*.so
	dh_missing --fail-missing
