File: rules

package info (click to toggle)
tlsh 3.4.4+20151206-1.3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,016 kB
  • sloc: cpp: 6,841; python: 109; sh: 48; makefile: 23; ansic: 10
file content (31 lines) | stat: -rwxr-xr-x 727 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
#!/usr/bin/make -f

export PYBUILD_NAME = tlsh

%:
	dh $@ --with=python3 --buildsystem=cmake

override_dh_auto_build:
	dh_auto_build --buildsystem=cmake
	dh_auto_build --sourcedirectory=py_ext --buildsystem=pybuild

override_dh_auto_install: debian/tlsh_unittest.1
	dh_auto_install --buildsystem=cmake
	dh_auto_install --sourcedirectory=py_ext --buildsystem=pybuild

override_dh_python3:
	dh_python3 -O--sourcedirectory=py_ext -O--buildsystem=pybuild

debian/tlsh_unittest.1: debian/tlsh_unittest.1.rst
	rst2man $< $@

override_dh_clean:
	rm -f debian/tlsh_unittest.1
	rm -rf .pybuild
	rm -rf py_ext/build
	rm -rf bin
	rm -rf lib
	rm -rf VERSION include/version.h
	rm -f test/simple_unittest
	rm -f test/tlsh_version
	dh_clean