File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -260,17 +260,21 @@ endif
260260coverage :
261261 @echo " Building with coverage enabled..."
262262 $(MAKE ) clean
263- $(MAKE ) COVERAGE=1 DEBUG=1
263+ $(MAKE ) COVERAGE=1 $( filter-out coverage, $( MAKECMDGOALS ) )
264264 @echo " Running tests..."
265265 @if [ ! -f $( BUILD_DIR) /$( BIN) .elf ]; then \
266266 echo " Error: $( BUILD_DIR) /$( BIN) .elf not found. Build failed." ; \
267267 exit 1; \
268268 fi
269269 $(BUILD_DIR ) /$(BIN ) .elf
270270 @echo " Generating coverage report..."
271- gcovr --root . . \
271+ cd .. && mkdir -p coverage && gcovr --root . \
272272 --filter ' src/.*' \
273273 --filter ' wolfhsm/.*' \
274- --html-details $( BUILD_DIR ) / coverage.html \
274+ --html-details coverage/index .html \
275275 --print-summary
276- @echo " Coverage report generated at $( BUILD_DIR) /coverage.html"
276+ @echo " Coverage report generated at ../coverage/index.html"
277+
278+ # Prevent make from trying to build these as targets
279+ % :
280+ @:
You can’t perform that action at this time.
0 commit comments