File: rules

package info (click to toggle)
routes 2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 828 kB
  • ctags: 400
  • sloc: python: 4,770; makefile: 99
file content (58 lines) | stat: -rwxr-xr-x 1,202 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/make -f

#export DH_VERBOSE=1

PYVERS=$(shell pyversions -vr)
PY3VERS=$(shell py3versions -vr)

clean:
	dh_testdir
	dh_testroot
	rm -rf dist build
	find . -name "*\.py[co]" -delete
	find . -name "\._*" -delete
	rm -rf docs/_build
	dh_clean Routes.egg-info/* build-docs

build: build-indep
build-arch:
build-indep: build-docs
build-docs:
	dh_testdir
	dh_installdirs
	PYTHONPATH=. sphinx-build -N -q -E -b html docs/ \
		debian/python-routes/usr/share/doc/python-routes/html/
	touch $@

install: $(PYVERS:%=install-python%) $(PY3VERS:%=install3-python%)
install-python%:
	python$* setup.py install \
	        --install-layout=deb \
		--root $(CURDIR)/debian/python-routes

install3-python%:
	python$* setup.py install \
	        --install-layout=deb \
		--root $(CURDIR)/debian/python3-routes

binary-indep: build install
	dh_testdir -i
	dh_testroot -i
	dh_installchangelogs -i
	dh_installdocs -i
	dh_sphinxdoc -i
	dh_link -i
	dh_python2 -i
	dh_python3 -i
	dh_compress -i -X.py
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

binary-arch:

binary: binary-indep binary-arch

.PHONY: build build-arch build-indep clean binary-indep binary-arch binary install