File: rules

package info (click to toggle)
python-pathlib 1.0.1-2.1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 364 kB
  • sloc: python: 2,450; makefile: 139
file content (23 lines) | stat: -rwxr-xr-x 508 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
21
22
23
#!/usr/bin/make -f

export PYBUILD_NAME=pathlib

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

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

override_dh_auto_clean:
	dh_auto_clean
	make -C docs clean

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

override_dh_auto_test:
	PYBUILD_TEST_ARGS="-s $(CURDIR)" dh_auto_test

override_dh_compress:
	dh_compress -X.txt