File: rules

package info (click to toggle)
musicbrainzngs 0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 904 kB
  • ctags: 594
  • sloc: python: 3,110; xml: 2,901; makefile: 136; sh: 16
file content (21 lines) | stat: -rwxr-xr-x 476 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
#!/usr/bin/make -f

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

export PYBUILD_NAME=musicbrainzngs

LAST_CHANGE = $(shell dpkg-parsechangelog -S Date)
BUILD_DATE  = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")

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

override_dh_auto_build:
	dh_auto_build
	make -C docs html SPHINXOPTS="-D html_last_updated_fmt=\"$(BUILD_DATE)\""

override_dh_clean:
	rm -rf docs/_build
	dh_clean