#!/usr/bin/make -f

LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)

override_dh_auto_test:
	# disable tests, they do not compile
	# undefined reference to libpff_item_get_display_name_size
	:

override_dh_clean:
	dh_clean
	find $(CURDIR) -name Makefile -delete
	for filename in common/config.h common/stamp-h1 dpkg/copyright dpkg/changelog libtool po/Makefile.in\
		po/POTFILES include/libpff/features.h;\
	do rm -f $$filename; done

%:
	dh $@  --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- LDFLAGS="-Wl,--as-needed $(LDFLAGS)"

override_dh_strip:
	dh_strip --dbg-package=libpff-dbg
