Browse Source
actual coverage reports and api docs can be build via make again ... now project name and version are taken from configure ... ahh and configure holds version information from git.
release0.1.6
actual coverage reports and api docs can be build via make again ... now project name and version are taken from configure ... ahh and configure holds version information from git.
release0.1.6
5 changed files with 96 additions and 50 deletions
-
14Makefile.am
-
34Makefile.am.coverage
-
23configure.ac
-
17docs/Makefile.am
-
58tests/Makefile.am
@ -1,34 +0,0 @@ |
|||
|
|||
# Coverage targets
|
|||
|
|||
#if HAVE_GCOV
|
|||
|
|||
.PHONY: clean-gcda |
|||
clean-gcda: |
|||
@echo Removing old coverage results |
|||
-find -name '*.gcda' -print | xargs -r rm |
|||
|
|||
.PHONY: coverage-html generate-coverage-html clean-coverage-html |
|||
coverage-html: clean-gcda |
|||
-$(MAKE) -C tests $(AM_MAKEFLAGS) -k check-build |
|||
$(MAKE) $(AM_MAKEFLAGS) init-coverage-html |
|||
-$(MAKE) $(AM_MAKEFLAGS) -k check |
|||
$(MAKE) $(AM_MAKEFLAGS) generate-coverage-html |
|||
|
|||
init-coverage-html: |
|||
$(LCOV) -d $(top_builddir) -z |
|||
$(LCOV) -d $(top_builddir) -c -i -o coverage.base |
|||
|
|||
generate-coverage-html: |
|||
@echo Collecting coverage data |
|||
$(LCOV) -d $(top_builddir) -c -o coverage.run --gcov-tool /usr/bin/gcov |
|||
$(LCOV) -d $(top_builddir) -a ./coverage.base -a ./coverage.run -o coverage.info |
|||
LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --branch-coverage --show-details coverage.run |
|||
|
|||
clean-coverage-html: clean-gcda |
|||
-$(LCOV) --directory $(top_builddir) -z |
|||
-rm -rf coverage.info coveragereport |
|||
|
|||
clean-local: clean-coverage-html |
|||
|
|||
#endif # HAVE_GCOV
|
|||
@ -0,0 +1,17 @@ |
|||
if HAVE_DOXYGEN |
|||
# directory = $(top_srcdir)/docs/man/man3/
|
|||
#
|
|||
# dist_man_MANS = $(directory)/man_page_1.3 $(directory)/man_page_2.3
|
|||
# $(directory)/man_page_1.3: doxyfile.stamp
|
|||
# $(directory)/man_page_2.3: doxyfile.stamp
|
|||
|
|||
.PHONY: docs |
|||
|
|||
docs: |
|||
mkdir $(PACKAGE_VERSION) |
|||
$(DOXYGEN) Doxyfile |
|||
echo Timestamp > doxyfile.stamp |
|||
|
|||
clean-local: |
|||
rm -rf $(top_srcdir)/docs/$(PACKAGE_VERSION) |
|||
endif |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue