Makefile.am 933 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. SUBDIRS = src
  2. USE_LCOV=@USE_LCOV@
  3. LCOV=@LCOV@
  4. GENHTML=@GENHTML@
  5. DISTCLEANFILES = config.report
  6. # When running distcheck target, do not install the configurations
  7. DISTCHECK_CONFIGURE_FLAGS = --disable-install-configurations
  8. clean-coverage:
  9. @if [ $(USE_LCOV) = yes ] ; then \
  10. $(LCOV) --directory . --zerocounters; \
  11. rm -rf coverage/; \
  12. else \
  13. echo "Code coverage not enabled at configuration time"; \
  14. exit 1; \
  15. fi
  16. perform-coverage: check
  17. report-coverage:
  18. $(LCOV) --capture --directory . --output-file all.info
  19. $(LCOV) --remove all.info \
  20. c++/4.4\*/\* \
  21. c++/4.4\*/backward/\* \
  22. c++/4.4\*/bits/\* \
  23. c++/4.4\*/ext/\* \
  24. c++/4.4\*/\*-\*/bits/\* \
  25. boost/\* \
  26. gtest/\* \
  27. usr/include/\* \
  28. tests/\* \
  29. unittests/\* \
  30. \*_unittests.cc \
  31. \*_unittest.cc \
  32. \*_unittests.h \
  33. --output report.info
  34. $(GENHTML) -o coverage report.info
  35. coverage: clean-coverage perform-coverage report-coverage