#!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 export DH_OPTIONS=-v DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel)) export DEB_CXXFLAGS_MAINT_APPEND = -g0 endif DOTTED:=`py3versions -d | sed 's/python//' ` NODOT:=`py3versions -d | sed 's/\.//' | sed 's/python//' ` %: dh $@ --buildsystem=cmake --with python2,python3 override_dh_auto_configure: dh_auto_configure -- \ -DPY3VERSION_DOTTED=$(DOTTED) -DPY3VERSION_NODOT=$(NODOT) override_dh_python2: dh_numpy override_dh_python3: dh_numpy3