File: rules

package info (click to toggle)
criu 4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,500 kB
  • sloc: ansic: 139,280; python: 7,484; sh: 3,824; java: 2,799; makefile: 2,659; asm: 1,137; perl: 206; xml: 117; exp: 45
file content (37 lines) | stat: -rwxr-xr-x 928 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
#!/usr/bin/make -f

export PYBUILD_SYSTEM := pyproject

# export PYBUILD_VERBOSE := 1
# export DH_VERBOSE := 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

PACKAGE = $(firstword $(shell dh_listpackages))
TMP     = $(CURDIR)/debian/tmp

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

override_dh_auto_clean:
	$(MAKE) V=1 -j1 clean

override_dh_auto_build:
	$(MAKE) V=1
	PYBUILD_NAME=pycriu PYBUILD_DIR=lib \
	pybuild --build

	PYBUILD_NAME=crit PYBUILD_DIR=crit \
	pybuild --build -d crit

override_dh_auto_install:
	$(MAKE) install V=1 DESTDIR="$(TMP)" PREFIX="/usr" LIBEXECDIR="/usr/lib/$(DEB_TARGET_MULTIARCH)"

	PYBUILD_NAME=pycriu PYBUILD_DIR=lib \
	pybuild --install --dest-dir $(CURDIR)/debian/python3-pycriu -d lib

	PYBUILD_NAME=crit PYBUILD_DIR=crit \
	pybuild --install --dest-dir $(CURDIR)/debian/python3-pycriu -d crit

override_dh_auto_test:
	# disabled: not appropriate to run as part of the package build