File: rules

package info (click to toggle)
jeolib-jiplib 1.1.6%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,028 kB
  • sloc: cpp: 40,743; python: 2,784; sh: 49; makefile: 24; ansic: 5
file content (25 lines) | stat: -rwxr-xr-x 640 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

export DEB_PYTHON_INSTALL_LAYOUT=deb_system

include /usr/share/dpkg/architecture.mk

%:
	dh $@ --buildsystem=cmake --builddir=build

override_dh_auto_test:
# Ignore test failures on problematic architectures only
ifeq (,$(filter $(DEB_BUILD_ARCH),amd64))
	PYTHONPATH=$(CURDIR)/build dh_auto_test || echo "Ignoring test failures"
else
	PYTHONPATH=$(CURDIR)/build dh_auto_test
endif

execute_after_dh_auto_install:
	find $(CURDIR)/debian/tmp -name '*.so*' -exec chrpath -d {} \;