File: rules

package info (click to toggle)
python-dugong 3.7.4+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 524 kB
  • sloc: python: 2,714; makefile: 25; sh: 7
file content (37 lines) | stat: -rwxr-xr-x 853 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
31
32
33
34
35
36
37
#!/usr/bin/make -f
# -*- makefile -*-

#export DH_VERBOSE=1
export PYBUILD_NAME=dugong
export PYBUILD_TEST_PYTEST=1
export PYBUILD_TEST_ARGS=--installed "{dir}/test/"

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

.PHONY: override_dh_auto_build
override_dh_auto_build:
	dh_auto_build

ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	# Build docs
	python3 setup.py build_sphinx
endif

.PHONY: override_dh_auto_clean
override_dh_auto_clean:
	dh_auto_clean
	rm -rf doc/html doc/doctrees

.PHONY: update_intersphinx
update_intersphinx:
	wget http://docs.python.org/3/objects.inv -O debian/python.inv

.PHONY: get-orig-source
get-orig-source:
	uscan --rename --destdir=$(CURDIR)/.. --repack --force-download \
	      --download-current-version --compression xz

.PHONY: uscan
uscan:
	uscan --rename --destdir=$(CURDIR)/.. --repack --compression xz