File: rules

package info (click to toggle)
puddletag 2.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 29,888 kB
  • sloc: python: 24,929; javascript: 21,828; xml: 964; makefile: 129; sh: 85
file content (34 lines) | stat: -rwxr-xr-x 811 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export PYBUILD_DISABLE=test

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

override_dh_clean:
	dh_clean
	$(MAKE) -C docsrc clean

override_dh_auto_install:
	cd $(CURDIR)/source ; \
	python3 setup.py install --root=$(CURDIR)/debian/puddletag --install-layout=deb

	$(MAKE) -C docsrc documentation SPHINXBUILD=sphinx-build

override_dh_python3:
	dh_python3 --verbose --shebang=/usr/bin/python3

override_dh_installdocs:
	dh_installdocs README.md THANKS TODO
	mv docs/documentation/ docs/html/
	dh_installdocs docs/html/
	dh_link /usr/share/doc/puddletag/html/docs.html /usr/share/doc/puddletag/html/index.html

override_dh_compress:
	dh_compress -X.txt

override_dh_installchangelogs:
	dh_installchangelogs changelog