-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Expand file tree
/
Copy pathMakefile.am
More file actions
34 lines (26 loc) · 872 Bytes
/
Makefile.am
File metadata and controls
34 lines (26 loc) · 872 Bytes
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
CLEANFILES =
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_MAKEFLAGS = --no-print-directory
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libmodbus.pc
EXTRA_DIST = libmodbus.pc.in
CLEANFILES += libmodbus.pc
dist_doc_DATA = AUTHORS NEWS.md README.md
SUBDIRS = src
if BUILD_TESTS
SUBDIRS += tests
endif
# Code coverage (gcov/lcov)
# Usage: make CFLAGS="--coverage -O0" LDFLAGS="--coverage" && make coverage
.PHONY: coverage
coverage:
-find $(top_builddir) -name '*.gcda' -delete
$(MAKE) check
lcov --capture --directory $(top_builddir)/src --output-file coverage.info --ignore-errors source
lcov --remove coverage.info '/usr/*' --output-file coverage.info
genhtml coverage.info --output-directory coverage
CLEANFILES += coverage.info
clean-local:
-rm -rf coverage
-find $(top_builddir) -name '*.gcda' -delete
-find $(top_builddir) -name '*.gcno' -delete