pgsql: Preserve intermediate .c files in coverage mode
pgsql: Preserve intermediate .c files in coverage mode
От:
Peter Eisentraut <peter_e@gmx.net>
Дата:
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. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/4af3dda13601d859a20425e3554533fde0549056 Modified Files -------------- src/Makefile.global.in | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
Re: pgsql: Preserve intermediate .c files in coverage mode
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Peter Eisentraut writes: > 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. [ blink... ] I'd vote for making them precious all the time. No such behavioral change was discussed or agreed to, and I'm concerned about possible side effects, for instance losing files that you don't have the tools to rebuild when working from a distributed tarball. regards, tom lane