Skip to content

Commit

Permalink
Fix coverage recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
faheel committed May 14, 2018
1 parent 3e6c91c commit 69dd72f
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -29,4 +38,5 @@ dirs:
# clean build files
.PHONY: clean
clean:
cd build && make clean
cd build && \
make clean

0 comments on commit 69dd72f

Please sign in to comment.