File: rules

package info (click to toggle)
htseq 0.5.4p3-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 2,592 kB
  • ctags: 2,833
  • sloc: cpp: 5,458; python: 1,762; makefile: 103; sh: 6
file content (47 lines) | stat: -rwxr-xr-x 992 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/make -f

DH_VERBOSE=1
PYTHON2=$(shell pyversions -vr)

# see https://wiki.debian.org/Python/LibraryStyleGuide
export http_proxy=http://127.0.9.1:9

%:
	dh $@ --with python2,sphinxdoc

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
test-python%:
	python$* setup.py test -vv

override_dh_auto_test: $(PYTHON2:%=test-python%)
endif

override_dh_auto_build:
	make -C src
	python setup.py build
	# build the man pages for the binary package
	python setup.py build_sphinx -b man

override_dh_auto_install-indep:
	# build the html pages for the -doc package
	python setup.py build_sphinx -b html

override_dh_installchangelogs:
	dh_installchangelogs -k doc/history.rst

override_dh_sphinxdoc-arch:
	# dh_sphinxdoc doesn't fail silently when there are no docs

override_dh_auto_clean:
	make -C src clean
	rm -rf dist build MANIFEST
	rm -rf *.egg-info
	dh_auto_clean

# need an explicit clean target to deal with the file named clean
clean:
	dh $@ --with python2,sphinxdoc

.PHONY: clean