File: rules

package info (click to toggle)
musicbrainzngs 0.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 912 kB
  • sloc: python: 3,170; xml: 2,858; makefile: 136; sh: 8
file content (20 lines) | stat: -rwxr-xr-x 467 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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 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