vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 7d03148ce5c55b5fdc806c9e28eaf69364475e7d parent 3ea4b54beb1dab9cf4990f722a584cba52ecc918 Author: Marc André Tanner <mat@brain-dump.org> Date: Thu, 10 Nov 2016 12:45:39 +0100 build: add Makefile target for code coverage via gcov Diffstat:
| M | .gitignore | | | 3 | +++ |
| M | Makefile | | | 7 | +++++-- |
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/.gitignore b/.gitignore @@ -4,6 +4,9 @@ README.html *.swo *.swp *.o +*.gcov +*.gcda +*.gcno /vis /vis-menu /dependency diff --git a/Makefile b/Makefile @@ -58,6 +58,9 @@ debug: clean profile: clean @$(MAKE) CFLAGS_DEBUG='${CFLAGS_DEBUG_ENABLE} -pg' +coverage: clean + @$(MAKE) CFLAGS_DEBUG='--coverage' + test-update: git submodule init git submodule update --remote --rebase @@ -68,7 +71,7 @@ test: clean: @echo cleaning - @rm -f vis vis-menu vis-${VERSION}.tar.gz + @rm -f vis vis-menu vis-${VERSION}.tar.gz *.gcov *.gcda *.gcno dist: clean @echo creating dist tarball @@ -116,4 +119,4 @@ uninstall: @echo removing support files from ${DESTDIR}${SHAREPREFIX}/vis @rm -rf ${DESTDIR}${SHAREPREFIX}/vis -.PHONY: all clean dist install uninstall debug profile test test-update +.PHONY: all clean dist install uninstall debug profile coverage test test-update