Preserve intermediate .c files in coverage mode

The introduction of the .y -> .c pattern rule causes some .c files such
as bootparse.c to be considered intermediate files in the .y -> .c -> .o
rule chain, which make would automatically delete.  But in coverage
mode, the processing tools such as genhtml need those files, so mark
them as "precious" so that make preserves them.
This commit is contained in:
Peter Eisentraut 2012-10-28 10:35:46 -04:00
parent 6868ed7491
commit 4af3dda136
1 changed files with 2 additions and 0 deletions

View File

@ -329,6 +329,8 @@ GENHTML = @GENHTML@
ifeq ($(enable_coverage),yes)
# ccache loses .gcno files
export CCACHE_DISABLE = 1
# preserve intermediate .c files for genhtml
.PRECIOUS: %.c
endif
# Feature settings