summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 94fb830..c0af5c2 100644
--- a/Makefile
+++ b/Makefile
@@ -137,6 +137,8 @@ clean::
$(RM) $(CLEANSUFFIXES)
$(RM) $(TOOLS)
$(RM) $(CLEANSUFFIXES:%=tools/%)
+ $(RM) coverage.info
+ $(RM) -r coverage-html
distclean::
$(RM) $(DISTCLEANSUFFIXES)
@@ -145,6 +147,15 @@ distclean::
config:
$(SRC_PATH)/configure $(value FFMPEG_CONFIGURATION)
+# Without the sed genthml thinks "libavutil" and "./libavutil" are two different things
+coverage.info: $(wildcard *.gcda *.gcno */*.gcda */*.gcno */*/*.gcda */*/*.gcno)
+ $(Q)lcov -c -d . -b . | sed -e 's#/./#/#g' > $@
+
+coverage-html: coverage.info
+ $(Q)mkdir -p $@
+ $(Q)genhtml -o $@ $<
+ $(Q)touch $@
+
include $(SRC_PATH)/doc/Makefile
include $(SRC_PATH)/tests/Makefile
OpenPOWER on IntegriCloud