Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 export DEB_BUILD_MAINT_OPTIONS := hardening=+all
5 export DISTSETUPOPTS="--install-layout=deb"
6
7 PY3V := $(shell py3versions -vr)
8
9 %:
10 dh $@ --with autoreconf,python3
11
12 override_dh_auto_build:
13 dh_auto_build -- V=1
14
15 override_dh_auto_install:
16 dh_auto_install
17 for pv in $(PY3V); do \
18 PYTHON=python$${pv} PYTHON_CONFIG=python$${pv}-config dh_auto_configure -- --enable-python-bindings; \
19 cd bindings/python; \
20 make clean; \
21 make install DESTDIR="$(CURDIR)/debian/tmp"; \
22 cd "$(CURDIR)"; \
23 done
24
25 # Force a dependency on libbabeltrace1 (>= 1.5.3-2~) to handle
26 # the merge of the ctf sub-library. Otherwise, packages built
27 # against a merged libabeltrace that link on ctf but installed
28 # on an older system will not pull libbabeltrace-ctf1.
29 override_dh_makeshlibs:
30 dh_makeshlibs -V 'libbabeltrace1 (>= 1.5.3-2~)'
31
32 execute_after_dh_auto_clean:
33 rm -rf bindings/python/babeltrace.egg-info
34 rm -f bindings/python/installed_files.txt