From: Bagas Sanjaya <bagasdotme@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org, "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Subject: Re: [PATCH v2] Makefile: error out invoking strip target
Date: Fri, 26 Nov 2021 14:38:59 +0700 [thread overview]
Message-ID: <c057b7fc-54b3-4946-16ad-8fbd548b505d@gmail.com> (raw)
In-Reply-To: <xmqqilwf8je9.fsf@gitster.g>
On 26/11/21 14.29, Junio C Hamano wrote:
> Bagas Sanjaya <bagasdotme@gmail.com> writes:
>
>> Now that $INSTALL_STRIP variable can be defined since 3231f41009 (make:
>> add INSTALL_STRIP option variable, 2021-09-05), it is redundant to have
>> 'strip' target when $INSTALL_STRIP does the job. Error out when invoking
>> the target so that users are forced to define the variable instead.
>
> It is not exactly redundant for folks who like to build and use in
> place without installing.
>
> What is the reason why we might want to eventually remove the
> "strip" target, making "make strip" an error? I do not quite see
> much downsides for having just a target with a simple one-liner
> recipe.
>
I think we have two ways to do the same thing (installing stripped) and I want
to push users to go with $INSTALL_STRIP instead of strip target.
Regarding deprecation, making $(warning) message instead of $(error) is better
option, because users can still use the target (albeit it is deprecated) and
they can update their build recipe to use $INSTALL_STRIP before we flip to
$(error) or remove the target.
--
An old man doll... just what I always wanted! - Clara
prev parent reply other threads:[~2021-11-26 7:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-25 12:26 [PATCH v2] Makefile: error out invoking strip target Bagas Sanjaya
2021-11-26 7:29 ` Junio C Hamano
2021-11-26 7:38 ` Bagas Sanjaya [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c057b7fc-54b3-4946-16ad-8fbd548b505d@gmail.com \
--to=bagasdotme@gmail.com \
--cc=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).