File: rules

package info (click to toggle)
accounts-qml-module 0.7%2Bgit20221012.4119d52-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 608 kB
  • sloc: cpp: 3,817; makefile: 21; sh: 5
file content (33 lines) | stat: -rwxr-xr-x 772 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
#!/usr/bin/make -f
# -*- makefile -*-

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

ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
export DEB_BUILD_PROFILES := cross
CONFIGURE_OPTS += CONFIG+=no_docs
endif

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

override_dh_auto_configure:
	dh_auto_configure \
		-- LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
		"QMAKE_CXXFLAGS=$(CFLAGS)" \
		CONFIG+=ubuntu-docs \
			$(CONFIGURE_OPTS) \
		accounts-qml-module.pro

override_dh_install:
	rmdir debian/tmp/usr/share/doc/accounts-qml-module/html/images/
	dh_install -X .gitignore

override_dh_missing:
	dh_missing --fail-missing

%:
	dh $@

get-orig-source:
	uscan --noconf --force-download --rename --download-current-version --destdir=..