File: rules

package info (click to toggle)
setools 4.5.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,640 kB
  • sloc: python: 25,271; makefile: 14
file content (27 lines) | stat: -rwxr-xr-x 672 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
#!/usr/bin/make -f
# -*- makefile -*-

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export DEB_CFLAGS_MAINT_APPEND = -Wno-sign-compare

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

export SEPOL = /usr/lib/$(DEB_HOST_MULTIARCH)/libsepol.a

%:
	dh $@ --buildsystem=pybuild --with python3

override_dh_auto_build-arch:
	dh_auto_build -a -O--buildsystem=pybuild
	TZ=UTC PATH=/usr/lib/$(DEB_HOST_MULTIARCH)/qt5/bin/:$(PATH) python3 setup.py build

override_dh_auto_test:
	dh_auto_test || true

override_dh_clean:
	dh_clean
	rm -f setools/policyrep.c setools/policyrep/libpolicyrep.c