File: rules

package info (click to toggle)
babeltrace2 2.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 42,660 kB
  • sloc: cpp: 106,162; ansic: 78,276; python: 27,115; sh: 9,053; makefile: 1,807; xml: 46
file content (38 lines) | stat: -rwxr-xr-x 954 bytes parent folder | download | duplicates (2)
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
37
38
#!/usr/bin/make -f
# -*- makefile -*-

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

PY3V := $(shell py3versions -vr)

%:
	dh $@  --with python3

override_dh_auto_configure:
	dh_auto_configure -- --enable-python-bindings --enable-python-plugins \
		--disable-Werror

override_dh_auto_build:
	dh_auto_build -- V=1

override_dh_auto_install:
	dh_auto_install
	rm -f "$(CURDIR)/debian/tmp/usr/lib/*/babeltrace2/plugins/*.a"
	for pv in $(PY3V); do \
	  PYTHON=python$${pv} PYTHON_CONFIG=python$${pv}-config \
	    dh_auto_configure -- --enable-python-bindings --enable-python-plugins \
	      --disable-Werror; \
	  cd src/bindings/python/bt2; \
	  make clean; \
	  make install DESTDIR="$(CURDIR)/debian/tmp"; \
	  cd "$(CURDIR)"; \
	done

# The plugins included with the library are not part of the ABI
override_dh_makeshlibs:
	dh_makeshlibs -Xbabeltrace-plugin

override_dh_clean:
	py3clean tests
	dh_clean