diff options
Diffstat (limited to 'src/build-data/makefile')
-rw-r--r-- | src/build-data/makefile/coverage.in | 4 | ||||
-rw-r--r-- | src/build-data/makefile/gmake.in | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/build-data/makefile/coverage.in b/src/build-data/makefile/coverage.in new file mode 100644 index 000000000..9547c4151 --- /dev/null +++ b/src/build-data/makefile/coverage.in @@ -0,0 +1,4 @@ + +lcov: + lcov --directory build/obj/lib/ --directory src/lib --no-external --capture --output-file botan.info + genhtml botan.info -o coverage/ diff --git a/src/build-data/makefile/gmake.in b/src/build-data/makefile/gmake.in index c45cd2940..e8c480a21 100644 --- a/src/build-data/makefile/gmake.in +++ b/src/build-data/makefile/gmake.in @@ -37,8 +37,7 @@ $(STATIC_LIB): $(LIBOBJS) $(AR) $(STATIC_LIB) $(LIBOBJS) $(RANLIB) $(STATIC_LIB) -# Fake Targets -.PHONY = clean distclean docs website install valgrind +%{coverage_in} SPHINX_CONFIG = %{sphinx_config_dir} SPHINX_OPTS = -b html @@ -46,6 +45,8 @@ SPHINX_OPTS = -b html WEBSITE_DIR=%{doc_output_dir}/website WEBSITE_SRC_DIR=%{doc_output_dir}/website-src +.PHONY = clean distclean docs website install valgrind + clean: $(RM) %{libobj_dir}/* %{testobj_dir}/* %{appobj_dir}/* $(RM) $(LIBRARIES) $(SYMLINK) $(SONAME) $(APP) $(TEST) |