File: rules

package info (click to toggle)
vitables 3.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,044 kB
  • sloc: python: 9,695; makefile: 214; sh: 90
file content (28 lines) | stat: -rwxr-xr-x 780 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
#!/usr/bin/make -f

export DH_VERBOSE=1
export PYBUILD_INSTALL_DIR=/usr/share/vitables/
export PYBUILD_TEST_ARGS="-k not test_l10n"

# Ensure tests are run with PyQt6
export QT_API=pyqt6

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_clean:
	$(MAKE) -C doc clean

execute_after_dh_auto_build:
	$(MAKE) -C doc html # generate doc/index.rst
	$(MAKE) -C doc qthelp
	cd doc/_build && rm -r html && mv qthelp html && rm html/_static/*.js

execute_before_dh_install:
	mv $(CURDIR)/debian/vitables/usr/bin/vitables $(CURDIR)/debian/vitables/usr/share/vitables/vitables-run

execute_after_dh_install:
	dh_install -p vitables vitables/icons/{??x??,vitables*} usr/share/vitables/icons

execute_after_dh_fixperms:
	chmod -x $(CURDIR)/debian/vitables/usr/share/vitables/vitables/start.py