File: rules

package info (click to toggle)
trompeloeil-cpp 43-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,540 kB
  • sloc: cpp: 15,524; sh: 114; makefile: 17
file content (27 lines) | stat: -rwxr-xr-x 586 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
BUILD_DIR=obj-$(DEB_HOST_GNU_TYPE)
include /usr/share/dpkg/architecture.mk

%:
	dh $@


override_dh_auto_configure:
	dh_auto_configure -- -DCMAKE_BUILD_TYPE=Debug

execute_after_dh_auto_build:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	cd $(BUILD_DIR) && \
	cmake --build ./ -t self_test thread_terror custom_recursive_mutex -j$$((`nproc`-1))
endif

execute_after_dh_auto_test:
	 cd $(BUILD_DIR) && \
	 ./self_test && ./thread_terror && ./custom_recursive_mutex



override_dh_compress:
	dh_compress -X.pdf -X.md