Skip to content

Commit 0d02251

Browse files
authored
Merge pull request #20 from dwRchyngqxs/patch-2
Update Makefile for coverage
2 parents 7cc0e2b + fa69810 commit 0d02251

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Makefile

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ DEPENDENCIES := $(patsubst src/%.cpp,build/%.d,$(SOURCES))
88
OBJECTS := $(patsubst src/%.cpp,build/%.o,$(SOURCES))
99
OBJECTS += build/parser.tab.o build/lexer.yy.o
1010

11-
.PHONY: default clean with_coverage coverage
11+
.PHONY: default clean coverage
1212

1313
default: bin/c_compiler
1414

@@ -30,8 +30,6 @@ build/lexer.yy.cpp: src/lexer.flex build/parser.tab.hpp
3030
@mkdir -p build
3131
flex -o build/lexer.yy.cpp src/lexer.flex
3232

33-
with_coverage : bin/c_compiler
34-
3533
coverage:
3634
@rm -rf coverage/
3735
@mkdir -p coverage

docs/coverage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Coverage information
22
====================
33

4-
If you want to know which part of your code is executed when running your compiler on a file you can build your compiler with `make with_coverage`, run your compiler on the file, then run `make coverage`.
4+
If you want to know which part of your code is executed when running your compiler on a file you can run your compiler on the file, then run `make coverage`.
55

66
This will generate a webpage `coverage/index.html` with a listing of all the source files and for each source file a listing of the number of times each line has been executed.
77

0 commit comments

Comments
 (0)