#!/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/default.mk ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) BUILD_OPTIONS+=-DBUILD_TESTS=ON \ -DGTEST_SRC_DIR="/usr/src/googletest" else BUILD_OPTIONS+=-DBUILD_TESTS=OFF endif # -march=native on mipsel is unreliable, # success depends on the machine (specific CPU model) # Best to just switch off -march=native # (allow it on other arches in order to test the typical user experience) ifneq (,$(findstring $(DEB_HOST_ARCH),mipsel)) BUILD_OPTIONS += -Darch_native_supported=OFF endif %: dh $@ --with sphinxdoc override_dh_auto_clean: dh_auto_clean rm -f include/xtensor-blas/xblas_config_cling.hpp override_dh_auto_configure: dh_auto_configure -- $(BUILD_OPTIONS) override_dh_auto_build-indep: dh_auto_build ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) $(MAKE) -C docs html endif override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) CTEST_OUTPUT_ON_FAILURE=1 dh_auto_test -- xtest endif