File: rules

package info (click to toggle)
libmbim 1.24.6-0.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,052 kB
  • sloc: ansic: 14,852; sh: 4,521; python: 2,905; makefile: 628; xml: 145
file content (29 lines) | stat: -rwxr-xr-x 687 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
#!/usr/bin/make -f

export DPKG_GENSYMBOLS_CHECK_LEVEL=4
%:
	dh $@ --with gir

ifeq ($(filter libmbim-glib-doc,$(shell dh_listpackages)),)
configure_flags += --disable-gtk-doc --disable-gtk-doc-html
else
configure_flags += --enable-gtk-doc --enable-gtk-doc-html
endif

ifneq ($(filter linux,$(DEB_HOST_ARCH_OS)),)
configure_flags += --with-udev
else
configure_flags += --without-udev
endif

override_dh_auto_configure:
	dh_auto_configure -- --enable-introspection=yes $(configure_flags)

override_dh_missing:
	dh_missing -X.la --fail-missing

override_dh_strip:
	dh_strip --dbgsym-migration='libmbim-glib4-dbg (<< 1.12.4-1~)'

override_dh_installexamples:
	dh_installexamples -XMakefile