File: Makefile.am

package info (click to toggle)
ladvd 1.1.1~pre1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,264 kB
  • ctags: 1,154
  • sloc: ansic: 11,145; sh: 189; makefile: 182
file content (37 lines) | stat: -rw-r--r-- 1,147 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
36
37
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src . doc systemd @TESTS_SUBDIR@

if TESTS_ENABLED

check-uml:
	-git checkout https://github.com/sspans/ladvd-tests-uml.git @top_srcdir@/tests/uml
	-chmod +x @top_srcdir@/tests/uml/linux @top_srcdir@/tests/uml/uml.sh
	-@top_srcdir@/tests/uml/linux quiet mem=256M rootfstype=hostfs rw eth0=slirp,,/usr/bin/slirp-fullbolt init=@abs_srcdir@/tests/uml/uml.sh WORKDIR=$(abs_builddir)

if GCOV_ENABLED
lcov-reset:
	lcov -d @top_srcdir@/src --zerocounters

lcov-report:
	lcov -b @top_srcdir@/src -d @top_srcdir@/src --capture \
		--no-checksum --output-file @top_builddir@/lcov.info.tmp
	lcov -b @top_srcdir@/src -d @top_srcdir@/src \
		--output-file @top_builddir@/lcov.info \
		--remove @top_builddir@/lcov.info.tmp
	rm @top_builddir@/lcov.info.tmp
	$(mkdir_p) @top_builddir@/lcov
	revision=`hg heads --template="{rev}" tip`;\
	genhtml --title "@PACKAGE_STRING@ - Rev $$revision" \
		--output-directory @top_builddir@/lcov lcov.info
	@echo
	@echo 'lcov report can be found in:'
	@echo 'file://@abs_top_builddir@/lcov/index.html'
	@echo

lcov-check:
	$(MAKE) lcov-reset
	$(MAKE) check
	$(MAKE) lcov-report
endif
endif