File: rules

package info (click to toggle)
pyrit 0.5.1+git20180801-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 3,596 kB
  • sloc: python: 4,667; ansic: 3,352; cpp: 1,490; asm: 394; lisp: 192; makefile: 15; sed: 7; sh: 6
file content (33 lines) | stat: -rwxr-xr-x 869 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- makefile -*-

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

# If DEB_BUILD_OPTIONS contains parallel=N, use N number of cores for the
# unit tests as well. Whatever N is, pyrit won't use more than the number
# of cores available. If unset, default to 1
NUMCORES = $(or $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))),1)


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


override_dh_auto_configure:
	dh_auto_configure
	sed -e 's,<CORES>,$(NUMCORES),' debian/config.build.in > debian/config.build


override_dh_auto_test:
	PYBUILD_SYSTEM=custom \
	PYBUILD_TEST_ARGS="cd $(CURDIR)/test/ && {interpreter} test_pyrit.py" \
	PYRIT_CONFIG_FILE="$(CURDIR)/debian/config.build" \
	dh_auto_test


override_dh_auto_clean:
	dh_auto_clean
	rm -f debian/config.build