#!/usr/bin/make -f

override_dh_install:
	rm -f debian/tmp/usr/lib/*/*.la
	dh_install --fail-missing

%:
	dh $@ --with autoreconf

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	if env RUNTESTFLAGS=-av dh_auto_test; then \
		head -v -c-0 testsuite/*.log; \
	else \
		e="$$?"; \
		head -v -c-0 testsuite/*.log; \
		exit "$$e"; \
	fi
endif
