File: rules

package info (click to toggle)
libblockdev 2.28-2%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,004 kB
  • sloc: ansic: 17,979; python: 9,476; makefile: 567; sh: 487
file content (38 lines) | stat: -rwxr-xr-x 1,127 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,--as-needed

# Don't build nvdimm binary packages on these architectures.
# We do it this way since we can't set excluded Architectures
# for binary packages in debian/control but it's easier to keep track
# of the architectures we don't want than all the arches we do want
# The arch list comes from https://buildd.debian.org/status/package.php?p=ndctl
ifneq (,$(filter ia64,$(DEB_HOST_ARCH)))
CONF_FLAGS += --without-nvdimm
BUILD_PACKAGES = -Nlibblockdev-nvdimm-dev -Nlibblockdev-nvdimm2
endif

ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes) $(DEB_HOST_ARCH), yes i386)
   BUILD_PACKAGES += -Nlibblockdev-mpath-dev -Nlibblockdev-mpath2 -Nlibblockdev-plugins-all
endif


%:
	dh $@ $(BUILD_PACKAGES)

override_dh_auto_configure:
	dh_auto_configure -- \
		--disable-tests \
		--without-s390 \
		--without-python2 \
		--without-tools \
		--without-vdo \
		--without-dmraid \
		$(CONF_FLAGS)

execute_before_dh_install:
	find debian -name '*.la' -print -delete

override_dh_makeshlibs:
	dh_makeshlibs -- -c4