X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/179ee2db78ca77efe755303b2e20c6c4c6d4fedf..9f899440d2d33c0a6a54ae85e987460d551e20d9:/src/Makefile diff --git a/src/Makefile b/src/Makefile index 34ef7a7c..11f270b9 100644 --- a/src/Makefile +++ b/src/Makefile @@ -226,10 +226,10 @@ redis-check-aof: .make-prerequisites $(CHECKAOFOBJ) %.o: %.c .make-prerequisites $(QUIET_CC)$(CC) -c $(CFLAGS) $(DEBUG) $(COMPILE_TIME) -I../deps/lua/src $< -.PHONY: all clean distclean +.PHONY: all clean distclean lcov clean: - rm -rf $(PRGNAME) $(BENCHPRGNAME) $(CLIPRGNAME) $(CHECKDUMPPRGNAME) $(CHECKAOFPRGNAME) *.o *.gcda *.gcno *.gcov + rm -rf $(PRGNAME) $(BENCHPRGNAME) $(CLIPRGNAME) $(CHECKDUMPPRGNAME) $(CHECKAOFPRGNAME) *.o *.gcda *.gcno *.gcov redis.info lcov-html distclean: clean -(cd ../deps && $(MAKE) distclean) @@ -241,6 +241,12 @@ dep: test: redis-server redis-check-aof @(cd ..; ./runtest) +lcov: + $(MAKE) clean gcov + @(set -e; cd ..; ./runtest --clients 1) + @geninfo -o redis.info . + @genhtml --legend -o lcov-html redis.info + bench: ./redis-benchmark