File: Makefile.am

package info (click to toggle)
ladvd 1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,240 kB
  • sloc: ansic: 11,169; sh: 189; makefile: 184
file content (41 lines) | stat: -rw-r--r-- 1,271 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
38
39
40
41
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

if HAVE_SYSTEMD
DISTCHECK_CONFIGURE_FLAGS = \
  --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
endif