#!/usr/bin/make -f include /usr/share/dpkg/architecture.mk MAX := 2 TYPE := RelWithDebInfo ifeq (32,$(DEB_HOST_ARCH_BITS)) ifeq (,$(filter $(DEB_HOST_ARCH), i386)) TYPE := Release export DEB_CFLAGS_MAINT_APPEND = -g1 export DEB_CXXFLAGS_MAINT_APPEND = -g1 ifneq (,$(filter $(DEB_HOST_ARCH), mipsel)) export DEB_CXXFLAGS_MAINT_APPEND = -g0 endif endif endif %: dh $@ --max-parallel=$(MAX) --buildsystem=cmake override_dh_auto_configure: dh_auto_configure -- \ -DCMAKE_BUILD_TYPE=$(TYPE) \ -DCMAKE_CXX_FLAGS_RELEASE="" \ -DPYTHON_EXECUTABLE="/usr/bin/python3" override_dh_install: dh_install find debian/ -name "LICENSE.md" -delete