#!/usr/bin/make -f

%:
	dh $@ --buildsystem R

# Debian unvendors the HDF5 (and libaec/szip) libraries and links against the
# system packages instead.  Upstream builds the vendored copies from a
# top-level "configure" script that runs tools/libaec_setup.R and
# tools/hdf5_setup.R (a CMake build via biocmake).  We neutralise that here so
# the vendored sources are never compiled; the system libraries are used
# instead (see debian/links and debian/patches).  This is defensive: the DFSG
# tarball currently omits "configure", but we replace it with a no-op should a
# future upstream import reintroduce it.
# The generated "configure" is removed again by dh_clean (see debian/clean).
execute_before_dh_auto_configure:
	printf '#!/bin/sh\nexit 0\n' > configure
	chmod +x configure
