File: rules

package info (click to toggle)
sphinx-rtd-theme 0.1.9-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,788 kB
  • ctags: 50
  • sloc: python: 42; makefile: 19
file content (25 lines) | stat: -rwxr-xr-x 759 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
#!/usr/bin/make -f

PY2_PATH = debian/python-sphinx-rtd-theme/usr/lib/python2.7/dist-packages/sphinx_rtd_theme
PY3_PATH = debian/python3-sphinx-rtd-theme/usr/lib/python3/dist-packages/sphinx_rtd_theme

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

override_dh_python2:
	dh_python2 --recommends=sphinx

override_dh_python3:
	dh_python3 --recommends=sphinx

override_dh_link:
	rm -rf $(PY2_PATH)/static $(PY3_PATH)/static
	set -ex; for d in `cd sphinx_rtd_theme; find static -type d`; do \
		mkdir $(PY2_PATH)/$$d; \
		mkdir $(PY3_PATH)/$$d; \
	done
	set -ex; for f in `cd sphinx_rtd_theme; find static -type f`; do \
		ln -s /usr/share/sphinx_rtd_theme/$$f $(PY2_PATH)/$$f; \
		ln -s /usr/share/sphinx_rtd_theme/$$f $(PY3_PATH)/$$f; \
	done
	dh_link