File: rules

package info (click to toggle)
libgwenhywfar 5.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 13,348 kB
  • sloc: ansic: 118,535; cpp: 11,117; sh: 4,808; objc: 2,548; makefile: 2,015; xml: 1,882
file content (54 lines) | stat: -rwxr-xr-x 1,322 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
#!/usr/bin/make -f

ifneq (,$(findstring nodocs,$(DEB_BUILD_OPTIONS)))
	DEB_BUILD_DOCS=0
else
	DEB_BUILD_DOCS=1
endif

# Let dpkg-gensymbols fail if symbols file updates are needed
DPKG_GENSYMBOLS_CHECK_LEVEL ?= 4
export DPKG_GENSYMBOLS_CHECK_LEVEL

include /usr/share/dpkg/architecture.mk
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
CROSS_COMPILE = $(DEB_HOST_GNU_TYPE)-
endif
export QT_SELECT=qt5

override_dh_auto_configure:
	dh_auto_configure -- \
		--with-guis="fox16 qt5 gtk3" \
		--with-qt5-qmake=$(CROSS_COMPILE)qmake \
		--enable-system-certs \
		--with-openssl-libs=/usr/lib/$(DEB_TARGET_MULTIARCH) \
		--with-libxml2-code=yes \
		--disable-network-checks

override_dh_auto_build:
	dh_auto_build
	$(MAKE) -C debian/man

	# This is not an arch-indep target, as some built binaries are required to build the srcdoc
	if [ "$(DEB_BUILD_DOCS)" = "1" ]; then \
		$(MAKE) srcdoc; \
		rm -v apidoc/jquery.js; \
	else \
		mkdir apidoc; \
	fi

override_dh_strip:
	dh_strip --dbgsym-migration='libgwenhywfar60-dbg (<< 4.17.0-3~)'

override_dh_makeshlibs:
	dh_makeshlibs -Xgwenhywfar/plugins

override_dh_auto_clean:
	rm -rvf apidoc listdoc.h gwenhywfar.tag gwenhywfar4
	$(MAKE) -C debian/man clean
	dh_auto_clean

%:
	dh $@

.PHONY:	override_dh_auto_configure override_dh_auto_build override_dh_strip override_dh_auto_clean