#!/usr/bin/make -f

# See debhelper(7) (uncomment to enable).
# Output every command that modifies files on the build system.
export DH_VERBOSE = 1

include /usr/share/dpkg/architecture.mk

export DOWNLOAD_DATA=false
export DATADIR=/usr/share

%:
	dh $@


override_dh_auto_configure:
ifeq ($(DEB_HOST_ARCH),armhf)
	dh_auto_configure -- --datadir=$(DATADIR) --with-cflags-scanner-extra=-marm
else
	dh_auto_configure -- --datadir=$(DATADIR)
endif

override_dh_missing:
	dh_missing -Xlibpostal.a -Xlibpostal.la

override_dh_auto_test:
	# do not run tests, they need the data in the correct directory
