Re: makefiles writing to $@ should first write to $@.new

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: makefiles writing to $@ should first write to $@.new
Дата
Msg-id ad1f1fd3-0648-935a-6a09-763a4fca108e@enterprisedb.com
обсуждение исходный текст
Ответ на makefiles writing to $@ should first write to $@.new  (Justin Pryzby <pryzby@telsasoft.com>)
Список pgsql-hackers
On 24.01.22 04:23, Justin Pryzby wrote:
> There are many Makefile rules like
> 
> foo: bar
>     ./tool $< > $@
> 
> If the rule is interrupted (due to ^C or ENOSPC), foo can be 0 bytes or
> partially written, but won't be rebuilt until someone runs distclean or debugs
> it and removes the individual file, as I did for errcodes.h.

If a rule fails, make removes the target file.  So I don't see how this 
can happen unless you hard kill -9 make or something like that.



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: PSA: Autoconf has risen from the dead
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: Printing backtrace of postgres processes