File: rules

package info (click to toggle)
mtd-utils 1%3A2.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, bullseye-backports
  • size: 2,240 kB
  • sloc: ansic: 37,615; sh: 552; makefile: 72
file content (21 lines) | stat: -rwxr-xr-x 465 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
CONFIGURE_ARGS = --enable-unit-tests
else
CONFIGURE_ARGS = --disable-unit-tests
endif

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIGURE_ARGS)

# tests are known to pass only on the listed architectures
ifeq (,$(filter amd64 armel armhf arm64 i386 mipsel s390x x32,$(DEB_HOST_ARCH)))
override_dh_auto_test:
	-dh_auto_test
endif