Commit 4af3dda1 authored by Peter Eisentraut's avatar Peter Eisentraut

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.
parent 6868ed74
...@@ -329,6 +329,8 @@ GENHTML = @GENHTML@ ...@@ -329,6 +329,8 @@ GENHTML = @GENHTML@
ifeq ($(enable_coverage),yes) ifeq ($(enable_coverage),yes)
# ccache loses .gcno files # ccache loses .gcno files
export CCACHE_DISABLE = 1 export CCACHE_DISABLE = 1
# preserve intermediate .c files for genhtml
.PRECIOUS: %.c
endif endif
# Feature settings # Feature settings
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment