aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/makefile/gmake_coverage.in
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-21 18:08:01 +0200
committerSimon Warta <[email protected]>2015-06-21 18:08:01 +0200
commitdb0e18e4dd040c7ecb9cb3b93c937c244c042b12 (patch)
tree6952fa0621e58994802aded0397929c19f049e13 /src/build-data/makefile/gmake_coverage.in
parent7dcf597fe0a7e513977e50758d649e86416f1a43 (diff)
Fix coverage make target
Diffstat (limited to 'src/build-data/makefile/gmake_coverage.in')
-rw-r--r--src/build-data/makefile/gmake_coverage.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/build-data/makefile/gmake_coverage.in b/src/build-data/makefile/gmake_coverage.in
index 1ce9927a4..2656069e3 100644
--- a/src/build-data/makefile/gmake_coverage.in
+++ b/src/build-data/makefile/gmake_coverage.in
@@ -1,3 +1,6 @@
-lcov:
- lcov --directory build/obj/lib/ --directory src/lib --no-external --capture --output-file botan.info
- genhtml botan.info -o coverage/
+%{out_dir}/coverage/index.html: $(TEST)
+ LD_LIBRARY_PATH=%{out_dir} $(TEST)
+ lcov --directory "%{build_dir}/obj/lib" --base-directory "%{src_dir}" --no-external --capture --output-file "%{out_dir}/coverage.info"
+ genhtml "%{out_dir}/coverage.info" -o "%{out_dir}/coverage"
+
+lcov: %{out_dir}/coverage/index.html