From 6bf4812a0e8a03a39e598bf38b19acb38095b255 Mon Sep 17 00:00:00 2001 From: Faheel Ahmad Date: Mon, 14 May 2018 19:01:44 +0530 Subject: [PATCH] Fix coverage recipe --- Makefile | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 3f39f44..c368210 100644 --- a/Makefile +++ b/Makefile @@ -4,17 +4,26 @@ # compile tests .PHONY: default default: dirs - cd build && cmake .. && make + cd build && \ + cmake .. && \ + make # run tests .PHONY: test test: default - cd build && cmake .. && ctest + cd build && \ + cmake .. && \ + ctest # generate coverage report .PHONY: coverage -coverage: default - cd build && cmake .. -DENABLE_COVERAGE=1 && make gcov && make lcov +coverage: dirs clean + cd build && \ + cmake .. -DENABLE_COVERAGE=1 && \ + make && \ + ctest && \ + make gcov && \ + make lcov # create the single-include header file to release .PHONY: release @@ -29,4 +38,5 @@ dirs: # clean build files .PHONY: clean clean: - cd build && make clean + cd build && \ + make clean