Re: [PATCH v3 2/9] Makefiles: add "shared.mak", move ".DELETE_ON_ERROR" to it
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 25, 2022, 22:47 UTC
- Message-ID
- <xmqqwnhi8swx.fsf@gitster.g>
- In-Reply-To
- <patch-v3-2.9-96a490bec54-20220225T090127Z-avarab@gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 10 quoted lines
> diff --git a/Makefile b/Makefile > index 6f0b4b775fe..d378ec22545 100644 > --- a/Makefile > +++ b/Makefile > @@ -1,3 +1,6 @@ > +# Import tree-wide shared Makefile behavior and libraries > +include shared.mak > + > # The default target of this Makefile is... > all::
Continuing with the theme of [1/9], this change to Makefile gets my firm NAK. The first two lines MUST stay to be the first lines.
Otherwise, a mistaken patch that adds rules to shared.make will make the first of these rules, not "all", as the default target.
Just move it below to the third line or so and you'd be OK.