File: rules

package info (click to toggle)
pycairo 1.26.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,004 kB
  • sloc: ansic: 8,873; python: 4,112; makefile: 28; sh: 4
file content (35 lines) | stat: -rwxr-xr-x 1,143 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
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

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

# Build for all supported python3 versions.
# for details, see https://bugs.debian.org/1055488
override_dh_auto_configure:
	$(foreach PYVERSION,$(shell py3versions -s),dh_auto_configure --builddir=obj-$(PYVERSION) -- -Dpython=$(PYVERSION); )

override_dh_auto_build:
	$(foreach PYVERSION,$(shell py3versions -s),dh_auto_build --builddir=obj-$(PYVERSION) -- ; )

override_dh_auto_install:
	$(foreach PYVERSION,$(shell py3versions -s),dh_auto_install --builddir=obj-$(PYVERSION) -- ; )

# Doc-only build does not need tests
override_dh_auto_test-indep:

override_dh_auto_test:
	$(foreach PYVERSION,$(shell py3versions -s),dh_auto_test --builddir=obj-$(PYVERSION) -- ; )

execute_after_dh_auto_build-indep:
	python3 -m sphinx -bhtml docs debian/tmp-doc/html
	# to fix lintian: privacy-breach-generic
	sed -ir 's|src="https:[^"]*|src="|' debian/tmp-doc/html/index.html

execute_after_dh_auto_clean:
	rm -rf debian/tmp-doc

# https://bugs.debian.org/1034520
override_dh_installchangelogs:
	dh_installchangelogs -Xchangelog