File: rules

package info (click to toggle)
binwalk 2.1.2~git20180830+dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 980 kB
  • sloc: python: 5,339; sh: 222; makefile: 13
file content (22 lines) | stat: -rwxr-xr-x 481 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
#!/usr/bin/make -f

# export DH_VERBOSE=1
export PYBUILD_NAME=binwalk

%:
	dh $@ --with python3 --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:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	HOME= PYTHONPATH=src python3 setup.py test
endif

override_dh_install:
	dh_install
	mkdir -p debian/binwalk/usr/bin
	mv debian/python3-binwalk/usr/bin debian/binwalk/usr