#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@ --parallel --buildsystem=cmake

override_dh_auto_configure:
	dh_auto_configure -- -DCMAKE_SKIP_INSTALL_RPATH=ON -DUSE_FFTW3=ON -DUSE_HDF5=OFF \
		-DUSE_THREADS=ON -DLIB_SUFFIX=/$(DEB_HOST_GNU_TYPE) \
		-DDATA_DIR=/usr/share/casacore/data -DBUILD_PYTHON3=ON -DCXX11=ON

override_dh_auto_build-indep:
	doxygen doxygen.cfg
	rm -f doc/html/jquery.js

override_dh_auto_test-indep override_dh_auto_install-indep:

override_dh_auto_test-arch:
	HOME=$(CURDIR) dh_auto_test --max-parallel=1 -a

override_dh_clean:
	rm -rf doc
