#!/usr/bin/make -f

export ACLOCAL := aclocal-1.15
export AUTOMAKE := automake-1.15
export CC := gcc-4.8
export CXX := g++-4.8

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

%:
	dh $@ --with autoreconf

override_dh_autoreconf:
	mkdir -p m4
	dh_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
