File: rules

package info (click to toggle)
obitools 1.2.12%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,900 kB
  • sloc: python: 18,221; ansic: 1,542; makefile: 96
file content (30 lines) | stat: -rwxr-xr-x 685 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
#!/usr/bin/make -f
#DH_VERBOSE = 1

# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all


export PYBUILD_NAME=obitools

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

override_dh_clean:
	dh_clean
	rm -rf build
	rm -f doc/sphinx/build_dir.txt

override_dh_auto_install:
	PYTHONPATH=$(shell pybuild --print build_dir --interpreter python) \
		http_proxy='127.0.0.1:9' \
	    dh_auto_install

override_dh_installman:
	dh_installman
	find debian -name "ecoPCR.1*" -delete
	find debian -name "ecofind.1*" -delete