File: rules

package info (click to toggle)
babeltrace 1.5.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 7,256 kB
  • sloc: ansic: 37,909; sh: 5,225; yacc: 2,327; makefile: 526; lex: 142; python: 104
file content (30 lines) | stat: -rwxr-xr-x 862 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f
# -*- makefile -*-

export DEB_BUILD_MAINT_OPTIONS := hardening=+all
export DISTSETUPOPTS="--install-layout=deb"

PY3V := $(shell py3versions -vr)

%:
	dh $@  --with autoreconf,python3

override_dh_auto_build:
	dh_auto_build -- V=1

override_dh_auto_install:
	dh_auto_install
	for pv in $(PY3V); do \
	  PYTHON=python$${pv} PYTHON_CONFIG=python$${pv}-config dh_auto_configure -- --enable-python-bindings; \
	  cd bindings/python; \
	  make clean; \
	  make install DESTDIR="$(CURDIR)/debian/tmp"; \
	  cd "$(CURDIR)"; \
	done

# Force a dependency on libbabeltrace1 (>= 1.5.3-2~) to handle
# the merge of the ctf sub-library. Otherwise, packages built
# against a merged libabeltrace that link on ctf but installed
# on an older system will not pull libbabeltrace-ctf1.
override_dh_makeshlibs:
	dh_makeshlibs -V 'libbabeltrace1 (>= 1.5.3-2~)'