File: rules

package info (click to toggle)
python-fudge 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 524 kB
  • ctags: 683
  • sloc: python: 2,537; makefile: 81; sh: 5
file content (25 lines) | stat: -rwxr-xr-x 604 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
#!/usr/bin/make -f

#DH_VERBOSE=1

export PYBUILD_NAME=fudge
#export PYBUILD_DISABLE_python3=test

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

override_dh_auto_clean:
	dh_auto_clean
	rm -rf $(CURDIR)/docs/.build

override_dh_auto_build:
	sphinx-build $(SPHINXOPTS) -b html -a -c docs docs \
		$(CURDIR)/docs/.build/html
	dh_auto_build

override_dh_compress:
	dh_compress -i -X.rst -X.js -X.html -X.txt

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