File: rules

package info (click to toggle)
capstone 4.0.2-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports
  • size: 32,376 kB
  • sloc: ansic: 62,033; pascal: 31,625; cs: 19,216; python: 13,830; java: 10,885; ml: 9,778; makefile: 1,118; cpp: 374; sh: 228
file content (24 lines) | stat: -rwxr-xr-x 621 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
#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS=hardening=+all,+bindnow
export MAKEFLAGS := V=1

%:
	dh $@ --with python3

override_dh_auto_clean \
override_dh_auto_configure \
override_dh_auto_build \
override_dh_auto_test \
override_dh_auto_install:
	$(patsubst override_%,%,$@) -- \
		LIBDIRARCH=lib/$(DEB_HOST_MULTIARCH)
	$(patsubst override_%,%,$@) --sourcedirectory=bindings/python --buildsystem=pybuild

override_dh_auto_test: export LD_LIBRARY_PATH := $(LD_LIBRARY_PATH):$(CURDIR)/tests

override_dh_install:
	dh_install -Xdist-packages/capstone/lib