File: rules

package info (click to toggle)
libaccounts-qt 1.17-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 636 kB
  • sloc: cpp: 3,286; makefile: 23; sh: 8
file content (36 lines) | stat: -rwxr-xr-x 1,221 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
36
#!/usr/bin/make -f
# -*- makefile -*-

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DPKG_GENSYMBOLS_CHECK_LEVEL=4

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure --builddirectory=build-qt5 -- LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) QT_MAJOR_VERSION=5 ..
	dh_auto_configure --builddirectory=build-qt6 --buildsystem=qmake6 -- LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) QT_MAJOR_VERSION=6 ..

override_dh_auto_build:
	dh_auto_build --builddirectory=build-qt5
	dh_auto_build --builddirectory=build-qt6 --buildsystem=qmake6

override_dh_auto_install:
	dh_auto_install --builddirectory=build-qt5
	dh_auto_install --builddirectory=build-qt6
	find debian/tmp -name jquery.js -exec ln -sfv /usr/share/javascript/jquery/jquery.js {} \;
	# test stuff
	rm debian/tmp/usr/bin/accountstest

override_dh_auto_test:
	dbus-run-session -- dh_auto_test --builddirectory=build-qt5
	dbus-run-session -- dh_auto_test --builddirectory=build-qt6

override_dh_auto_clean:
	-dh_auto_clean --builddirectory=build-qt5 -- cleandocs
	dh_auto_clean --builddirectory=build-qt5
	-dh_auto_clean --builddirectory=build-qt6 -- cleandocs
	dh_auto_clean --builddirectory=build-qt6