diff --git a/.gitignore b/.gitignore index ca38e6a..cf9af95 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,7 @@ zathura zathura-debug zathura.pc +*.info +*.gcno +*.gcda +gcov/ diff --git a/Makefile b/Makefile index fe70487..48949a2 100644 --- a/Makefile +++ b/Makefile @@ -88,8 +88,8 @@ doc: clean $(QUIET)doxygen Doxyfile gcov: clean - $(QUIET)CFLAGS+="-fprofile-arcs -ftest-coverage" LDFLAGS+="-fprofile-arcs" $(MAKE) $(PROJECT) - $(QUIET)make -C tests + $(QUIET)CFLAGS="${CFLAGS}-fprofile-arcs -ftest-coverage" LDFLAGS="${LDFLAGS} -fprofile-arcs" ${MAKE} $(PROJECT) + $(QUIET)${MAKE} -C tests $(QUIET)lcov --directory . --capture --output-file $(PROJECT).info $(QUIET)genhtml --output-directory gcov $(PROJECT).info