File: rules

package info (click to toggle)
pyotherside 1.5.9-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 836 kB
  • sloc: cpp: 2,850; python: 468; makefile: 144; sh: 32
file content (29 lines) | stat: -rwxr-xr-x 762 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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export QT_SELECT=qt5

%:
	dh $@ --with=sphinxdoc

override_dh_auto_build:
	dh_auto_build
	/usr/share/sphinx/scripts/python3/sphinx-build -b html docs build/sphinx/html

override_dh_auto_clean:
	dh_auto_clean
	rm -rf build

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	xvfb-run -a ./tests/tests
endif

override_dh_installdocs:
	dh_installdocs -ppyotherside-doc --doc-main-package=qml-module-io-thp-pyotherside
	dh_installdocs --remaining-packages

execute_after_dh_install-arch:
	install --mode=644 $(CURDIR)/qtquicktests/*.qml $(CURDIR)/qtquicktests/*py debian/pyotherside-tests/usr/lib/$(DEB_HOST_MULTIARCH)/pyotherside/tests