#!/usr/bin/make -f
# -*- makefile -*-

export DEB_CFLAGS_MAINT_APPEND := -Wall

override_dh_auto_configure:
	dh_auto_configure --verbose -- \
		--enable-libplotter \
		--enable-libxmi

override_dh_auto_build:
	cd pic2plot/ && rm -vf gram.cc gram.h* && make gram.cc && \
		cp -a gram.hh gram.h
	dh_auto_build --verbose

# upstream asked to ignore failing testsuite, because it isn't a real issue, and will
# be fixed in the next release:
# FIXME: drop this on the next sync from Debian
ifeq ($(DEB_HOST_ARCH),i386)
override_dh_auto_test:
endif

%:
	dh $@ --with autoreconf
