diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-11-29 20:35:48 +0100 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-12-05 20:04:48 +0100 |
commit | 840ecc9e075a0268884141eb25e4f2dc3f35d9dc (patch) | |
tree | dc823dbda33966f995142f0f50b848c2f4d5ed46 /Makefile | |
parent | 51177b1fe93297d2dbb87802ef9bc18afc72fc21 (diff) | |
download | ffmpeg-840ecc9e075a0268884141eb25e4f2dc3f35d9dc.tar.gz |
Add coverage support.
Adds --enable-coverage to configure and a "coverage-html" make target.
The dependency stuff in the Makefile is a bit questionable, but the
best I could think of so far.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |