From 4af3dda13601d859a20425e3554533fde0549056 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sun, 28 Oct 2012 10:35:46 -0400 Subject: [PATCH] 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. --- src/Makefile.global.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Makefile.global.in b/src/Makefile.global.in index fbaaaf995b..c17c4be11a 100644 --- a/src/Makefile.global.in +++ b/src/Makefile.global.in @@ -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