File: rules

package info (click to toggle)
binwalk 2.4.3%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,412 kB
  • sloc: python: 6,744; sh: 164; makefile: 14
file content (24 lines) | stat: -rwxr-xr-x 591 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
#!/usr/bin/make -f

# export DH_VERBOSE=1
export PYBUILD_NAME=binwalk
export PYBUILD_BEFORE_TEST=cp -r {dir}/testing {build_dir}
export PYBUILD_TEST_ARGS=testing/tests/test*.py
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/testing

PYVER := $(shell py3versions -d)

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_clean:
	# Upstream setup.py clean does not accept options passed by
	# pybuild
	python3 setup.py clean

override_dh_auto_test:
	HOME= PYTHONPATH=src dh_auto_test

execute_after_dh_install:
	mkdir -p debian/binwalk/usr/bin
	mv debian/python3-binwalk/usr/bin debian/binwalk/usr