Debian Codegraph @

Makefile.am

raw
1 CLEANFILES =
2 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
3 AM_MAKEFLAGS = --no-print-directory
4
5 pkgconfigdir = $(libdir)/pkgconfig
6 pkgconfig_DATA = libmodbus.pc
7 EXTRA_DIST = libmodbus.pc.in
8 CLEANFILES += libmodbus.pc
9
10 dist_doc_DATA = AUTHORS NEWS.md README.md
11
12 SUBDIRS = src
13
14 if BUILD_TESTS
15 SUBDIRS += tests
16 endif
17
18 # Code coverage (gcov/lcov)
19 # Usage: make CFLAGS="--coverage -O0" LDFLAGS="--coverage" && make coverage
20
21 .PHONY: coverage
22
23 coverage:
24 -find $(top_builddir) -name '*.gcda' -delete
25 $(MAKE) check
26 lcov --capture --directory $(top_builddir)/src --output-file coverage.info --ignore-errors source
27 lcov --remove coverage.info '/usr/*' --output-file coverage.info
28 genhtml coverage.info --output-directory coverage
29
30 CLEANFILES += coverage.info
31 clean-local:
32 -rm -rf coverage
33 -find $(top_builddir) -name '*.gcda' -delete
34 -find $(top_builddir) -name '*.gcno' -delete