|
Packit |
4ed4b6 |
.PHONY: coverage genlcov coverage-clean
|
|
Packit |
4ed4b6 |
|
|
Packit |
4ed4b6 |
coverage:
|
|
Packit |
4ed4b6 |
-$(MAKE) $(AM_MAKEFLAGS) -k check
|
|
Packit |
4ed4b6 |
$(MAKE) $(AM_MAKEFLAGS) genlcov
|
|
Packit |
4ed4b6 |
|
|
Packit |
4ed4b6 |
infos = libcmis-lcov.info libcmis-c-lcov.info
|
|
Packit |
4ed4b6 |
$(infos): %-lcov.info:
|
|
Packit |
4ed4b6 |
$(LCOV) --directory $(top_builddir)/src/$* \
|
|
Packit |
4ed4b6 |
--base-directory $(top_builddir)/src/$* \
|
|
Packit |
4ed4b6 |
--capture \
|
|
Packit |
4ed4b6 |
--output-file $@ \
|
|
Packit |
4ed4b6 |
--no-external \
|
|
Packit |
4ed4b6 |
--compat-libtool
|
|
Packit |
4ed4b6 |
genlcov: $(infos)
|
|
Packit |
4ed4b6 |
LANG=C $(GENHTML) --output-directory libcmis-lcov --title "Libcmis Code Coverage" --legend --show-details $^
|
|
Packit |
4ed4b6 |
@echo "file://$(abs_top_builddir)/libcmis-lcov/index.html"
|
|
Packit |
4ed4b6 |
|
|
Packit |
4ed4b6 |
coverage-clean:
|
|
Packit |
4ed4b6 |
-$(LCOV) --directory $(top_builddir) -z
|
|
Packit |
4ed4b6 |
-rm -rf $(infos) libcmis-lcov
|
|
Packit |
4ed4b6 |
-find $(top_builddir) -type f -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" -exec rm "{}" \;
|