File: rules

package info (click to toggle)
python-gmpy2 2.0.7-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,608 kB
  • ctags: 1,109
  • sloc: ansic: 21,066; python: 5,815; makefile: 113
file content (14 lines) | stat: -rwxr-xr-x 423 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

export PYBUILD_NAME=gmpy2

# Fix the build date for Sphinx manpages so we get reproducible builds.
LAST_CHANGE=$(shell dpkg-parsechangelog -S Date)
BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")

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

override_dh_auto_build:
	dh_auto_build
	make man -C $(CURDIR)/docs SPHINXOPTS="-D today=\"$(BUILD_DATE)\""