add coverage target to makefile to generate a coverage report
This commit is contained in:
parent
098fc06942
commit
7e587f3570
9
Makefile
9
Makefile
|
@ -95,7 +95,8 @@ dist: distclean
|
||||||
rm -rf i3-${VERSION}
|
rm -rf i3-${VERSION}
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f src/*.o src/cfgparse.tab.{c,h} src/cfgparse.yy.c src/cfgparse.output src/cmdparse.tab.{c,h} src/cmdparse.yy.c src/cmdparse.output loglevels.tmp include/loglevels.h
|
rm -f src/*.o src/*.gcno src/cfgparse.tab.{c,h} src/cfgparse.yy.c src/cfgparse.output src/cmdparse.tab.{c,h} src/cmdparse.yy.c src/cmdparse.output loglevels.tmp include/loglevels.h
|
||||||
|
(which lcov >/dev/null && lcov -d . --zerocounters) || true
|
||||||
$(MAKE) -C docs clean
|
$(MAKE) -C docs clean
|
||||||
$(MAKE) -C man clean
|
$(MAKE) -C man clean
|
||||||
$(MAKE) TOPDIR=$(TOPDIR) -C i3-msg clean
|
$(MAKE) TOPDIR=$(TOPDIR) -C i3-msg clean
|
||||||
|
@ -105,3 +106,9 @@ distclean: clean
|
||||||
rm -f i3
|
rm -f i3
|
||||||
$(MAKE) TOPDIR=$(TOPDIR) -C i3-msg distclean
|
$(MAKE) TOPDIR=$(TOPDIR) -C i3-msg distclean
|
||||||
$(MAKE) TOPDIR=$(TOPDIR) -C i3-input distclean
|
$(MAKE) TOPDIR=$(TOPDIR) -C i3-input distclean
|
||||||
|
|
||||||
|
coverage:
|
||||||
|
rm -f /tmp/i3-coverage.info
|
||||||
|
rm -rf /tmp/i3-coverage
|
||||||
|
lcov -d . -b . --capture -o /tmp/i3-coverage.info
|
||||||
|
genhtml -o /tmp/i3-coverage/ /tmp/i3-coverage.info
|
||||||
|
|
Loading…
Reference in New Issue