summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2010-01-11 15:26:27 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2010-01-11 15:27:41 +0000
commitd74822f88de41a65321109a9647747bf6a0b876f (patch)
tree6997251bb117f89c0cb04283c62399a501f5aedd /tools
parentc286dfc81b3cde0313a48c0b8667a16d202f9c32 (diff)
Copy in a better version of lcov.am, from Gabble
* get the package name and git commit programmatically, rather than hard-coding the report title to telepathy-glib * allow extra arguments to be passed to make check by make lcov-check Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/lcov.am5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/lcov.am b/tools/lcov.am
index 97eed8f41..7384f1b99 100644
--- a/tools/lcov.am
+++ b/tools/lcov.am
@@ -8,7 +8,8 @@ lcov-report:
--remove @top_builddir@/lcov.info.tmp telepathy-glib-scan.c
rm @top_builddir@/lcov.info.tmp
$(mkdir_p) @top_builddir@/lcov.html
- genhtml --title telepathy-glib \
+ git_commit=`GIT_DIR=@top_srcdir@/.git git log -1 --pretty=format:%h 2>/dev/null`;\
+ genhtml --title "@PACKAGE_STRING@ $$git_commit" \
--output-directory @top_builddir@/lcov.html lcov.info
@echo
@echo 'lcov report can be found in:'
@@ -17,7 +18,7 @@ lcov-report:
lcov-check:
$(MAKE) lcov-reset
- $(MAKE) check
+ $(MAKE) check $(LCOV_CHECK_ARGS)
$(MAKE) lcov-report
## vim:set ft=automake: