#!/usr/bin/make -f

KEEP_FILES = Makefile.in aclocal.m4 compile configure depcomp install-sh \
	ltmain.sh missing

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

# No shared library which is too difficult to maintain.
override_dh_auto_configure:
	dh_auto_configure -- --disable-shared

# Ignore libtool's dependencies as they are tracked by dpkg.
execute_after_dh_auto_install:
	rm -f debian/libtgvoip-dev/usr/lib/*/libtgvoip.la

# Try to restore auto-generated files from Git index.
execute_after_dh_autoreconf_clean:
	-git checkout -- $(KEEP_FILES)
