File: rules

package info (click to toggle)
thin-provisioning-tools 0.7.6-2.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,204 kB
  • sloc: cpp: 23,503; lisp: 4,218; sh: 3,479; ansic: 1,363; xml: 544; makefile: 396; ruby: 155
file content (25 lines) | stat: -rwxr-xr-x 554 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/dpkg/default.mk

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- \
		--enable-testing \
		--with-optimisation=-O2

override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
	$(MAKE) -C debian/unit-tests all
	+LD_PRELOAD=$(CURDIR)/debian/unit-tests/preload.so $(MAKE) unit-test GMOCK_DIR=/usr/src/googletest
endif

override_dh_auto_clean:
	dh_auto_clean
	$(MAKE) -C debian/unit-tests clean