File: rules

package info (click to toggle)
ggcov 0.10-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 3,084 kB
  • sloc: cpp: 20,395; ansic: 8,235; php: 1,778; perl: 1,693; sh: 1,459; makefile: 294; xml: 32; yacc: 23; java: 6
file content (35 lines) | stat: -rwxr-xr-x 853 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
32
33
34
35
#!/usr/bin/make -f
# -*- makefile -*-
#
# debian/rules file for package 'gcov'
#

export CFLAGS := -I/usr/include/libiberty  $(shell dpkg-buildflags --get CFLAGS)

export DH_VERBOSE=1
# The magic rule ...
%:
	dh $@ 


override_dh_auto_configure:
	dh_auto_configure -- --localstatedir=/var/cache --enable-debug --disable-gui
	cp debian/ncXL7RzcB_120x120.png lib/templates

override_dh_auto_clean:
	# Some cruft
	make distclean || echo "Clean"
	# rm -rf test/test014/bar test/test014/baz test/test018/a.out test/test018/foo config.log
	# rm -rf test/test029
	find test -name '*.gcno' -exec rm {} \;
	find test -name '*.gcda' -exec rm {} \;
	find test -name '*.o' -exec rm {} \;
	find test -name '*.exe' -exec rm {} \;
	dh_clean

override_dh_auto_install:
	dh_auto_install
	find debian -name '*.la' -delete

override_dh_auto_test:
	(cd test && ./runtest)