git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Kevin P. Fleming" <kpfleming@digium.com>
To: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Cc: Lynn.Lin@emc.com, git@vger.kernel.org
Subject: Re: [PATCH] Makefile: don't include git version file on 'make clean'
Date: Sun, 25 Jul 2010 10:49:39 +0200	[thread overview]
Message-ID: <4C4BFAA3.3050700@digium.com> (raw)
In-Reply-To: <AANLkTilYXdVI_fqG5ZvPEABTXt7fTps3ZbPiiWgVnDxS@mail.gmail.com>

On 07/24/2010 02:36 PM, Ævar Arnfjörð Bjarmason wrote:
> On Sat, Jul 24, 2010 at 03:53,  <Lynn.Lin@emc.com> wrote:
>> From: Lynn Lin <Lynn.Lin@emc.com>
>>
>> ---
>>  Makefile         |    4 +++-
>>  git-gui/Makefile |    4 +++-
>>  2 files changed, 6 insertions(+), 2 deletions(-)
>>
>> diff --git a/Makefile b/Makefile
>> index bc3c570..eb28b98 100644
>> --- a/Makefile
>> +++ b/Makefile
>> @@ -238,7 +238,9 @@ all::
>>
>>  GIT-VERSION-FILE: FORCE
>>        @$(SHELL_PATH) ./GIT-VERSION-GEN
>> --include GIT-VERSION-FILE
>> +ifneq "$(MAKECMDGOALS)" "clean"
>> +  -include GIT-VERSION-FILE
>> +endif
>>
>>  uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
>>  uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not')
>> diff --git a/git-gui/Makefile b/git-gui/Makefile
>> index 197b55e..91e1ea5 100644
>> --- a/git-gui/Makefile
>> +++ b/git-gui/Makefile
>> @@ -9,7 +9,9 @@ all::
>>
>>  GIT-VERSION-FILE: FORCE
>>        @$(SHELL_PATH) ./GIT-VERSION-GEN
>> --include GIT-VERSION-FILE
>> +ifneq "$(MAKECMDGOALS)" "clean"
>> +  -include GIT-VERSION-FILE
>> +endif
>>
>>  uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
>>  uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not')
>> --
>> 1.7.1
> 
> This patch needs a rationale, why was it needed? The "-include"
> directive will simply ignore files that don't exist (as opposed to
> "include"), so including GIT-VERSION-FILE during "make clean'
> shouldn't be an issue.

Just guessing here, but since GIT-VERSION-FILE has a 'FORCE'
prerequisite, that means that the operations to generate it will be run
even for 'make clean', which is not useful for the cleaning operation.
It's probably not harmful either... but maybe the OP has some more
significant reason for this patch.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kfleming@digium.com
Check us out at www.digium.com & www.asterisk.org

  reply	other threads:[~2010-07-25  8:49 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-24  3:53 [PATCH] Makefile: don't include git version file on 'make clean' Lynn.Lin
2010-07-24 12:36 ` Ævar Arnfjörð Bjarmason
2010-07-25  8:49   ` Kevin P. Fleming [this message]
2010-07-25 11:28     ` lynn.lin
2010-07-25 11:41       ` Ævar Arnfjörð Bjarmason
2010-07-25 11:46         ` lynn.lin
2010-07-25 11:55           ` Ævar Arnfjörð Bjarmason
2010-07-25 12:02             ` lynn.lin
2010-07-25 12:10               ` Ævar Arnfjörð Bjarmason
2010-07-25 12:05             ` Andreas Schwab
2010-07-25 12:15               ` Ævar Arnfjörð Bjarmason
2010-07-25 12:19                 ` lynn.lin
2010-07-25 12:21                   ` lynn.lin
2010-07-25 12:29                     ` lynn.lin
2010-07-25 12:34                       ` Ævar Arnfjörð Bjarmason
2010-07-25 12:37                         ` lynn.lin
2010-07-25 13:08                           ` Ævar Arnfjörð Bjarmason
2010-07-25 13:21                             ` lynn.lin
2010-07-25 18:49 ` Patch follow-up conventions (Re: [PATCH] Makefile: don't include git version file on 'make clean') Jonathan Nieder

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=4C4BFAA3.3050700@digium.com \
    --to=kpfleming@digium.com \
    --cc=Lynn.Lin@emc.com \
    --cc=avarab@gmail.com \
    --cc=git@vger.kernel.org \
    /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).