Re: why generate output to tmp file and mv to actual file?

2018-06-01 Thread John Calcote
Thanks everyone - great responses! Answers all my questions. On Fri, Jun 1, 2018 at 1:00 PM, Eric Blake wrote: > On 06/01/2018 01:45 PM, John Calcote wrote: > >> I recently ran across some sample code in section 19.4 of the Autoconf >> manual (modified slightly to reduce example): >> >>

Re: why generate output to tmp file and mv to actual file?

2018-06-01 Thread Eric Blake
On 06/01/2018 01:45 PM, John Calcote wrote: I recently ran across some sample code in section 19.4 of the Autoconf manual (modified slightly to reduce example): $(TESTSUITE): $(srcdir)/testsuite.at $(srcdir)/package.m4 autom4te --language=autotest -I '$(srcdir)' -o $@.tmp $@.at

Re: why generate output to tmp file and mv to actual file?

2018-06-01 Thread Bob Friesenhahn
On Fri, 1 Jun 2018, John Calcote wrote: I recently ran across some sample code in section 19.4 of the Autoconf manual (modified slightly to reduce example): $(TESTSUITE): $(srcdir)/testsuite.at $(srcdir)/package.m4 autom4te --language=autotest -I '$(srcdir)' -o $@.tmp $@.at mv