File: rules

package info (click to toggle)
pydl 1.0.0~rc1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,008 kB
  • sloc: python: 7,484; makefile: 130
file content (32 lines) | stat: -rwxr-xr-x 841 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
26
27
28
29
30
31
32
#!/usr/bin/make -f

#export DH_VERBOSE=1
export PYBUILD_NAME=pydl
export http_proxy=127.0.0.1:9

BUILD_DATE  = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "@$(SOURCE_DATE_EPOCH)")
SPHINXOPTS := -D html_last_updated_fmt="$(BUILD_DATE)" -D html_show_copyright=0

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

override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=. sphinx-build $(SPHINXOPTS) -N -bhtml docs/ build/html

override_dh_auto_clean:
	dh_auto_clean
	rm -rf api
	rm -rf .cache
	rm -f pydl/version.py
	rm -f .travis.yml
	rm -f MANIFEST.in
	rm -f pip-requirements
	rm -rf pydl.egg-info
	rm -rf build
	rm -rf .pybuild

override_dh_python3:
	dh_python3
	rm -rf debian/python3-pydl/usr/lib/python3/dist-packages/pydl/pydlutils/data/cooling/README.rst
	rm -rf debian/python3-pydl/usr/lib/python3/dist-packages/pydl/tests/t/README.rst