unit-tests: delete extraction targets on error

The extract rules append with >> across several commands. Without
.DELETE_ON_ERROR: a failure partway through leaves a truncated header
with a fresh mtime that the next make treats as up to date.
pull/862/head
Daniele Lacamera 2026-08-18 09:19:13 +02:00
parent 3865c62614
commit a8afca38e3
1 changed files with 5 additions and 0 deletions

View File

@ -1077,4 +1077,9 @@ covclean:
clean: covclean
rm -f $(TESTS) *.o *.gcno *.gcda coverage.*
# The extraction rules below build one header with several appending
# commands. Without this, a failure partway through leaves a truncated
# file with a fresh mtime that the next make treats as up to date.
.DELETE_ON_ERROR:
.PHONY: FORCE