File: rules

package info (click to toggle)
consensuscore 1.1.1%2Bdfsg-7.1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,488 kB
  • sloc: cpp: 38,945; python: 2,083; ansic: 543; sh: 184; makefile: 90; cs: 10
file content (36 lines) | stat: -rwxr-xr-x 1,069 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/make -f

#DH_VERBOSE = 1
#include /usr/share/dpkg/default.mk

export LC_ALL=C.UTF-8
export PYBUILD_NAME=pbconsensuscore

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export DEB_CFLAGS_MAINT_APPEND=-fopenmp-simd -DSIMDE_ENABLE_OPENMP -Wno-psabi -O3
export DEB_CXXFLAGS_MAINT_APPEND=-fopenmp-simd -DSIMDE_ENABLE_OPENMP -Wno-psabi -O3

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	$(MAKE) test
# We can't run these additional tests because they only pass
# with the python2 version of the package; by this point
# the python3 version has taken over.
#	$(MAKE) test-python
endif

execute_before_dh_auto_build:
	test -f src/SWIG/numpy.i.orig || mv -v src/SWIG/numpy.i src/SWIG/numpy.i.orig
	cp $(shell python3 -c 'import numpy;print(numpy.get_include())')/numpy/numpy.i src/SWIG/numpy.i

execute_before_dh_auto_clean:
	! test -f src/SWIG/numpy.i.orig || mv -v src/SWIG/numpy.i.orig src/SWIG/numpy.i

execute_after_dh_python3:
	dh_numpy3

execute_after_dh_install:
	find debian -name meson.build -delete