File: rules

package info (click to toggle)
signond 8.60-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,388 kB
  • sloc: cpp: 18,904; python: 42; sh: 41; makefile: 35; xml: 17
file content (55 lines) | stat: -rwxr-xr-x 1,558 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/make -f
# -*- makefile -*-

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

# This has to be exported to make some magic below work.
export DH_OPTIONS
export NO_DOCS := no
export QMAKE_LIBDIR=/usr/lib
export QT_SELECT=qt5
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
DOXYGEN_VERSION := $(shell dpkg --status doxygen | grep Version | cut -f 2 -d ' ')
include /usr/share/dpkg/architecture.mk


%:
	dh $@ -Bbuild/qt5 --with pkgkde_symbolshelper

override_dh_auto_configure:
	mkdir -p build/qt5
	QT_SELECT=qt5 \
	dh_auto_configure -Bbuild/qt5 -- LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
		BUILD_DIR=build/qt5 \
		CONFIG+=enable-p2p \
		DEFINES+=QT_NO_DEBUG_OUTPUT \
		"QMAKE_CXXFLAGS=$(CFLAGS)" ../../signon.pro

override_dh_auto_build:
	QT_SELECT=qt5 dh_auto_build -Bbuild/qt5

override_dh_auto_clean:
	dh_auto_clean -Bbuild/qt5
	-rm src/signond/backupifadaptor.*

override_dh_auto_install-arch:
	dh_auto_install -Bbuild/qt5

override_dh_install:
	rm -f debian/tmp/usr/include/signon-plugins/*example*.h
	rm -f debian/tmp/usr/include/signon-plugins/*test*.h
	rm -f $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libsignon-qt*.*a
	rm -f $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/signon/libexampleplugin.so
	dh_install
	dh_doxygen -i

override_dh_gencontrol:
	dh_gencontrol -- -Vsignond:DoxygenVersion='$(DOXYGEN_VERSION)'

# as of 8.59 tests fail.
#  SsoTestClient: "No such object path '/com/google/code/AccountsSSO/SingleSignOn'"
override_dh_auto_test:
	dbus-run-session -- dh_auto_test

# .PHONY: override_dh_auto_test