From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: lynn.lin@emc.com, kpfleming@digium.com, git@vger.kernel.org
Subject: Re: [PATCH] Makefile: don't include git version file on 'make clean'
Date: Sun, 25 Jul 2010 12:15:38 +0000 [thread overview]
Message-ID: <AANLkTilK_8wVQG6s8pUrscwd7ZnvgGyjOjJP41uXYfEl@mail.gmail.com> (raw)
In-Reply-To: <m2d3ubojfr.fsf@igel.home>
On Sun, Jul 25, 2010 at 12:05, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
>
>> Makefile targets aren't triggered by the include directive.
>
> Umm, yes they are, see (make) Remaking Makefiles.
Ah, yes. But it was being included in more places than just that
-include directive, so I didn't spot the difference:
Without that directive, still generated on make clean:
$ git diff -U0 | cat
diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN
index e88f50c..f29406b 100755
--- a/GIT-VERSION-GEN
+++ b/GIT-VERSION-GEN
@@ -2,0 +3,2 @@
+echo MOO > /tmp/moo
+
diff --git a/Makefile b/Makefile
index b6975aa..5edfeca 100644
--- a/Makefile
+++ b/Makefile
@@ -241 +240,0 @@ GIT-VERSION-FILE: FORCE
--include GIT-VERSION-FILE
$ rm -v /tmp/moo; make clean > /dev/null; cat /tmp/moo
removed `/tmp/moo'
GIT_VERSION = 1.7.2.6.g65a0d3.dirty
GITGUI_VERSION = 0.12.0.64.g89d61-dirty
MOO
Deleted the rule, not generated, but other things are still calling
the rule:
$ git diff -U0 | cat
diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN
index e88f50c..f29406b 100755
--- a/GIT-VERSION-GEN
+++ b/GIT-VERSION-GEN
@@ -2,0 +3,2 @@
+echo MOO > /tmp/moo
+
diff --git a/Makefile b/Makefile
index b6975aa..1a189da 100644
--- a/Makefile
+++ b/Makefile
@@ -239,4 +238,0 @@ all::
-GIT-VERSION-FILE: FORCE
- @$(SHELL_PATH) ./GIT-VERSION-GEN
--include GIT-VERSION-FILE
-
$ rm -v /tmp/moo; make clean > /dev/null; cat /tmp/moo
removed `/tmp/moo'
make[2]: *** No rule to make target `GIT-VERSION-FILE'. Stop.
make[2]: *** No rule to make target `GIT-VERSION-FILE'. Stop.
make[2]: *** No rule to make target `GIT-VERSION-FILE'. Stop.
GITGUI_VERSION = 0.12.0.64.g89d61-dirty
cat: /tmp/moo: No such file or directory
next prev parent reply other threads:[~2010-07-25 12:15 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
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 [this message]
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=AANLkTilK_8wVQG6s8pUrscwd7ZnvgGyjOjJP41uXYfEl@mail.gmail.com \
--to=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=kpfleming@digium.com \
--cc=lynn.lin@emc.com \
--cc=schwab@linux-m68k.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).