File: rules

package info (click to toggle)
libgusb 0.4.9-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 572 kB
  • sloc: ansic: 5,602; xml: 206; python: 84; sh: 34; makefile: 19; javascript: 4
file content (24 lines) | stat: -rwxr-xr-x 670 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4

ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
TESTS = -Dumockdev=disabled
else ifneq ($(filter arm64 armhf s390x alpha hurd-amd64 hurd-i386 sparc64,$(DEB_HOST_ARCH)),)
TESTS = -Dtests=false
else ifneq ($(filter alpha hurd-amd64 hurd-i386,$(DEB_HOST_ARCH)),)
TESTS = -Dumockdev=disabled
else
TESTS = -Dumockdev=enabled
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		-Ddocs=$(if $(filter %-doc,$(shell dh_listpackages)),true,false) \
		-Dusb_ids=/usr/share/misc/usb.ids \
		$(TESTS)