diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -172,7 +172,7 @@ CFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 # Code coverage ifneq (${COV},) - COV_FLAGS = -O0 --coverage + COV_FLAGS = -O0 --coverage -DCOVERAGE CFLAGS += ${COV_FLAGS} LDFLAGS += ${COV_FLAGS} COV_INFO = ${BUILD}/coverage.info @@ -758,8 +758,8 @@ ${BUILD}/firmware/linktest/main: ${FWLIB} ${BUILD}/firmware/linktest/main: LIBS = ${FWLIB} ALL_OBJS += ${BUILD}/firmware/linktest/main.o -.phony: fwlinktest -fwlinktest: ${FWLIB} \ +.PHONY: fwlinktest +fwlinktest: \ ${BUILD}/firmware/linktest/main_vbinit \ ${BUILD}/firmware/linktest/main_vbsf \ ${BUILD}/firmware/linktest/main @@ -1227,9 +1227,9 @@ coverage_html: lcov -a ${COV_INFO}.initial -a ${COV_INFO}.tests -o ${COV_INFO}.total lcov -r ${COV_INFO}.total '/usr/*' '*/linktest/*' -o ${COV_INFO}.local genhtml ${COV_INFO}.local -o ${BUILD}/coverage - -# Generate addtional coverage stats just for firmware subdir, because the -# per-directory stats for the whole project don't include their own subdirs. +# Generate addtional coverage stats just for firmware subdir, because the stats +# for the whole project don't include subdirectory summaries. This will print +# the summary for just the firmware sources. lcov -r ${COV_INFO}.local '*/stub/*' -o ${COV_INFO}.nostub lcov -e ${COV_INFO}.nostub '${SRCDIR}/firmware/*' \ -o ${COV_INFO}.firmware |