diff options
| author | Ted Gould <ted@gould.cx> | 2012-02-17 16:18:45 -0600 |
|---|---|---|
| committer | Ted Gould <ted@gould.cx> | 2012-02-17 16:18:45 -0600 |
| commit | f8ca95b2f833a22f559ccd101c612081a6a089a3 (patch) | |
| tree | 70418cc37784f6f2a9c5c43639f1d2ec9723b5fc /Makefile.am | |
| parent | 6e60a40ec583b507aef6254a744631f30f9e072d (diff) | |
| parent | 52d15e402e4ada9c8f1ee1f4b7e3a9ada473772c (diff) | |
| download | ayatana-indicator-datetime-f8ca95b2f833a22f559ccd101c612081a6a089a3.tar.gz ayatana-indicator-datetime-f8ca95b2f833a22f559ccd101c612081a6a089a3.tar.bz2 ayatana-indicator-datetime-f8ca95b2f833a22f559ccd101c612081a6a089a3.zip | |
* New upstream release.
* Still need to distribute these files even if we're not building it
* Adding some extra ignore stuff in
* Adding in code coverage calculation
* Allow ccpanel to be optional
* Move to use libtimezone map
* Add a name hint on the indicator
* Build fixes for updated dependencies
* Fixing Geoclue support
Diffstat (limited to 'Makefile.am')
| -rw-r--r-- | Makefile.am | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index feea4de..fee212b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,6 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} SUBDIRS = \ - libmap \ src \ data \ tests \ @@ -36,3 +35,39 @@ dist-hook: else \ echo Failed to generate AUTHORS: not a branch >&2; \ fi + + +# Coverage targets + +.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) $(AM_MAKEFLAGS) -k check + $(MAKE) $(AM_MAKEFLAGS) generate-coverage-html + +generate-coverage-html: + @echo Collecting coverage data + $(LCOV) --directory $(top_builddir) --capture --output-file coverage.info --no-checksum --compat-libtool + LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --show-details coverage.info + +clean-coverage-html: clean-gcda + -$(LCOV) --directory $(top_builddir) -z + -rm -rf coverage.info coveragereport + +.PHONY: coverage-xml generate-coverage-xml clean-coverage-xml +coverage-xml: clean-gcda + -$(MAKE) $(AM_MAKEFLAGS) -k check + $(MAKE) $(AM_MAKEFLAGS) generate-coverage-xml + +generate-coverage-xml: + @echo Generating coverage XML report + $(GCOVR) -x -r $(top_builddir) -o $(top_builddir)/coverage.xml + +clean-coverage-xml: clean-gcda + -rm -rf $(top_builddir)/coverage.xml + +clean-local: clean-coverage-html clean-coverage-xml |
