Re: [PATCH v2 4/5] Makefile: add the ".DELETE_ON_ERROR" flag
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 29, 2021, 18:51 UTC
- Message-ID
- <xmqqblb1kd47.fsf@gitster.g>
- In-Reply-To
- <patch-4.6-2ff6359c273-20210329T161723Z-avarab@gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
> Use the GNU make ".DELETE_ON_ERROR" flag.
Yay!
With versions of $(MAKE) where this feature is available, it is far more preferrable to use it than "generate into temporary and rename to the final" dance.
We do require / depend on GNU but I do not offhand know if this is available in all versions that still matter. If we know we can assume the presence of this feature the I do not mind if we jump directly to this step without those "do the same for $(CC)" steps (which I deem crazy) before it.