#!/usr/bin/make -f

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

# do NOT run optipng on the icons, this removes the metadata in the latex
# symbol icons which kile depends on for the symbol table. LP: #772631
export NO_PNG_PKG_MANGLE=1

export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed

%:
	dh $@ --with kf5

override_dh_auto_install:
	dh_auto_install
	# remove documentation for another OS
	rm debian/tmp/usr/share/doc/kile/README.MacOSX
	# installed by dh_installchangelogs
	rm debian/tmp/usr/share/doc/kile/ChangeLog

override_dh_missing:
	dh_missing --fail-missing
