File: rules

package info (click to toggle)
kcov 43%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,600 kB
  • sloc: cpp: 12,617; ansic: 2,379; python: 2,001; sh: 333; makefile: 133; javascript: 65; xml: 7; asm: 4
file content (25 lines) | stat: -rwxr-xr-x 796 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

export DEB_BUILD_MAINT_OPTIONS := hardening=+all

%:
	dh $@


override_dh_gencontrol:
	dh_gencontrol -- -Vmisc:Built-Using="$(shell dpkg-query -f '$${source:Package} (= $${source:Version})' -W binutils-dev)"

override_dh_auto_test:
	mkdir $(shell pwd)/build-tests

	cd $(shell pwd)/build-tests && cmake $(shell pwd)/tests
	cd $(shell pwd)/build-tests && $(MAKE)

	PYTHONPYCACHEPREFIX="$(shell pwd)/py-cache" PYTHONPATH="$(shell pwd)/tests/tools" \
		python3 -m libkcov $(shell pwd)/obj-$(DEB_BUILD_GNU_TYPE)/src/kcov "$(shell pwd)/tests-temp" "$(shell pwd)/build-tests/" "." --no-ptrace -v

override_dh_auto_install:
	dh_auto_install
	# Policy: COPYING file is not needed
	find ./debian -type f -name "COPYING" -delete
	find ./debian -type f -name "COPYING.externals" -delete