File: rules

package info (click to toggle)
python-ssdeep 3.1%2Bdfsg-2
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 148 kB
  • ctags: 98
  • sloc: python: 424; makefile: 23
file content (30 lines) | stat: -rwxr-xr-x 803 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
#!/usr/bin/make -f
DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/buildflags.mk
%:
	dh $@ --with python2,python3

override_dh_auto_clean:
	rm -Rf */__pycache__ build
	rm -f */*.py[co] ssdeep.egg-info/top_level.txt

override_dh_auto_build:
	set -e; for v in `pyversions -vr debian/control` `py3versions -vr`; do \
		python$$v setup.py build; \
	done

override_dh_auto_install:
	set -e; for v in `pyversions -vr debian/control` `py3versions -vr`; do \
		python$$v setup.py install --root=debian/tmp --install-layout=deb; \
	done

override_dh_installchangelogs:
	dh_installchangelogs -k CHANGELOG.rst

override_dh_installdocs:
	dh_installdocs -A README.rst

override_dh_python2:
	dh_python2
	find debian/python-ssdeep -name SOURCES.txt -delete
	find debian/python-ssdeep -path "*__pycache__*" -delete