File: rules

package info (click to toggle)
ggcov 0.9-14
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 4,400 kB
  • ctags: 4,055
  • sloc: cpp: 17,077; sh: 12,380; ansic: 7,743; php: 1,644; perl: 1,509; makefile: 259; yacc: 23
file content (34 lines) | stat: -rwxr-xr-x 798 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
26
27
28
29
30
31
32
33
34
#!/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 $@ --with autoreconf


override_dh_auto_configure:
	    dh_auto_configure -- --localstatedir=/var/cache

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)