File: rules

package info (click to toggle)
doctest 2.4.5%2Brepack0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,064 kB
  • sloc: cpp: 11,871; python: 369; makefile: 16
file content (31 lines) | stat: -rwxr-xr-x 1,204 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
#!/usr/bin/make -f

%:
	dh $@

# Workaround CMake not using CPPFLAGS.
export DEB_CXXFLAGS_MAINT_APPEND = $(shell dpkg-buildflags --get CPPFLAGS)

override_dh_auto_configure:
	# CMAKE_EXPORT_COMPILE_COMMANDS=ON - "Enable output of compile commands during generation" => verboser build
	# CMAKE_CXX_FLAGS="-fprofile-arcs -ftest-coverage -std=c++11" - Flags in use by upstream
	# CMAKE_INSTALL_LIBDIR=/usr/lib - Forces the cmake configuration in the non-multiarch directory
	# CMAKE_BUILD_TYPE=Debug - We want to see it all
	dh_auto_configure -- -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
	                     -DCMAKE_CXX_FLAGS="-fprofile-arcs -ftest-coverage -std=c++11 $(shell dpkg-buildflags --get CXXFLAGS)" \
	                     -DCMAKE_INSTALL_LIBDIR=/usr/lib \
	                     -DCMAKE_BUILD_TYPE=Debug

override_dh_auto_test:
	# Clearer output for tests
	dh_auto_test --no-parallel -- ARGS\+=--output-on-failure

override_dh_compress:
	# .md Markdown files shall not be compressed
	dh_compress -X.md

override_dh_install:
	dh_install
	# Verify that the mandatory files are really installed
	[ -r debian/doctest-dev/usr/include/doctest/doctest.h ]
	[ -x debian/doctest-dev/usr/lib/cmake/doctest ]