File: rules

package info (click to toggle)
catch2 2.13.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,936 kB
  • sloc: cpp: 35,804; python: 1,158; sh: 81; objc: 59; makefile: 14
file content (20 lines) | stat: -rwxr-xr-x 452 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

# Disable fixfilepath, as it triggers build failures.
export DEB_BUILD_MAINT_OPTIONS=reproducible=-fixfilepath

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
ENABLE_TESTING = ON
else
ENABLE_TESTING = OFF
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_INSTALL_DOCDIR=/usr/share/doc/catch2/docs \
		-DCATCH_BUILD_TESTING=OFF \
		-DCATCH_BUILD_TESTING=$(ENABLE_TESTING)