File: rules

package info (click to toggle)
meson-python 0.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 704 kB
  • sloc: python: 1,876; ansic: 101; makefile: 13
file content (24 lines) | stat: -rwxr-xr-x 695 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

export PYBUILD_NAME = mesonpy

include /usr/share/dpkg/default.mk

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

override_dh_clean:
	dh_clean
	cp -a debian/upstream/$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz.asc ..

execute_before_dh_auto_configure:
	# The tarball contains files with mtime normalized to 1970-01-01,
	# which the Debian archive rejects on the assumption that they
	# indicate a misbuilt package.
	find . -not -newermt @0 -exec touch -d "@$(SOURCE_DATE_EPOCH)" {} +

execute_after_dh_auto_build:
	PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N -bhtml docs/ build/html

override_dh_installchangelogs:
	dh_installchangelogs CHANGELOG.rst