summaryrefslogtreecommitdiff
path: root/legacy/elementary/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/elementary/Makefile.am')
-rw-r--r--legacy/elementary/Makefile.am34
1 files changed, 31 insertions, 3 deletions
diff --git a/legacy/elementary/Makefile.am b/legacy/elementary/Makefile.am
index 70f7a92faa..30de680d10 100644
--- a/legacy/elementary/Makefile.am
+++ b/legacy/elementary/Makefile.am
@@ -54,9 +54,6 @@ po/Rules-quot
54 54
55endif 55endif
56 56
57
58
59
60EXTRA_DIST = \ 57EXTRA_DIST = \
61README \ 58README \
62AUTHORS \ 59AUTHORS \
@@ -125,3 +122,34 @@ doc:
125screenshots: all 122screenshots: all
126 @echo "entering src/examples/" 123 @echo "entering src/examples/"
127 $(MAKE) -C src/examples screenshots 124 $(MAKE) -C src/examples screenshots
125
126if ELEMENTARY_ENABLE_COVERAGE
127
128lcov-reset:
129 @rm -rf $(top_builddir)/coverage
130 @find $(top_builddir) -name "*.gcda" -delete
131 @lcov --zerocounters --directory $(top_builddir)
132
133lcov-report:
134 @mkdir $(top_builddir)/coverage
135 lcov --capture --compat-libtool --no-external --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir) --base-directory $(top_srcdir)/src/lib/
136 lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
137 lcov --remove $(top_builddir)/coverage/coverage.cleaned.info '*/elm_test_*' --output-file $(top_builddir)/coverage/coverage.cleaned2.info
138 lcov --remove $(top_builddir)/coverage/coverage.cleaned2.info '*/elm_suite.c' --output-file $(top_builddir)/coverage/coverage.cleaned3.info
139 lcov --remove $(top_builddir)/coverage/coverage.cleaned3.info '*NONE*' --output-file $(top_builddir)/coverage/coverage.cleaned4.info
140 genhtml --branch-coverage -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned4.info
141 @echo "Coverage Report at $(top_builddir)/coverage/html"
142
143endif
144
145if ELEMENTARY_ENABLE_TESTS
146
147lcov-check:
148if ELEMENTARY_ENABLE_COVERAGE
149 @$(MAKE) $(AM_MAKEFLAGS) lcov-reset
150endif
151 @$(MAKE) $(AM_MAKEFLAGS) check
152if ELEMENTARY_ENABLE_COVERAGE
153 @$(MAKE) $(AM_MAKEFLAGS) lcov-report
154endif
155endif