From: Peter Eisentraut Date: Sun, 28 Oct 2012 14:35:46 +0000 (-0400) Subject: Preserve intermediate .c files in coverage mode X-Git-Tag: REL9_3_BETA1~749 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4af3dda13601d859a20425e3554533fde0549056;p=thirdparty%2Fpostgresql.git 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. --- diff --git a/src/Makefile.global.in b/src/Makefile.global.in index fbaaaf995bf..c17c4be11a3 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