* [PATCH] Makefile: Add '+' to QUIET_SUBDIR0 to fix parallel make.
@ 2007-04-04 20:42 Fernando J. Pereda
2007-04-05 5:39 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Fernando J. Pereda @ 2007-04-04 20:42 UTC (permalink / raw)
To: git
Signed-off-by: Fernando J. Pereda <ferdy@gentoo.org>
---
I don't know if this breaks non-gnu make, and don't have an easy way
to test it right now. So someone should do that before it is applied.
This is needed for GNU make to let sub-makes connect to the jobserver
when multiple jobs are specified (-j option to make). It was not
needed before 74f2b2a8d006a49e1be7e30731c2f7365d2741d1 because of how
GNU make works.
- ferdy
Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index ad321b3..090ea98 100644
--- a/Makefile
+++ b/Makefile
@@ -657,7 +657,7 @@ ifndef V
QUIET_LINK = @echo ' ' LINK $@;
QUIET_BUILT_IN = @echo ' ' BUILTIN $@;
QUIET_GEN = @echo ' ' GEN $@;
- QUIET_SUBDIR0 = @subdir=
+ QUIET_SUBDIR0 = +@subdir=
QUIET_SUBDIR1 = ;$(NO_SUBDIR) echo ' ' SUBDIR $$subdir; \
$(MAKE) $(PRINT_DIR) -C $$subdir
export V
--
1.5.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Makefile: Add '+' to QUIET_SUBDIR0 to fix parallel make.
2007-04-04 20:42 [PATCH] Makefile: Add '+' to QUIET_SUBDIR0 to fix parallel make Fernando J. Pereda
@ 2007-04-05 5:39 ` Junio C Hamano
2007-04-05 6:19 ` Shawn O. Pearce
0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2007-04-05 5:39 UTC (permalink / raw)
To: Fernando J. Pereda; +Cc: git
"Fernando J. Pereda" <ferdy@gentoo.org> writes:
> Signed-off-by: Fernando J. Pereda <ferdy@gentoo.org>
> ---
>
> I don't know if this breaks non-gnu make, and don't have an easy way
> to test it right now. So someone should do that before it is applied.
I had an impression that our makefile is quite dependent on GNU
make already. Do people build git without gmake?
> This is needed for GNU make to let sub-makes connect to the jobserver
> when multiple jobs are specified (-j option to make). It was not
> needed before 74f2b2a8d006a49e1be7e30731c2f7365d2741d1 because of how
> GNU make works.
Thanks. The info page does not talk about -j but '+' apparently
is needed for jobserver.
As a special feature, using the variable `MAKE' in the commands of a
rule alters the effects of the `-t' (`--touch'), `-n' (`--just-print'),
or `-q' (`--question') option. Using the `MAKE' variable has the same
effect as using a `+' character at the beginning of the command line.
*Note Instead of Executing the Commands: Instead of Execution. This
special feature is only enabled if the `MAKE' variable appears directly
in the command script: it does not apply if the `MAKE' variable is
referenced through expansion of another variable. In the latter case
you must use the `+' token to get these special effects.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Makefile: Add '+' to QUIET_SUBDIR0 to fix parallel make.
2007-04-05 5:39 ` Junio C Hamano
@ 2007-04-05 6:19 ` Shawn O. Pearce
0 siblings, 0 replies; 3+ messages in thread
From: Shawn O. Pearce @ 2007-04-05 6:19 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Fernando J. Pereda, git
Junio C Hamano <junkio@cox.net> wrote:
> "Fernando J. Pereda" <ferdy@gentoo.org> writes:
>
> > Signed-off-by: Fernando J. Pereda <ferdy@gentoo.org>
> > ---
> >
> > I don't know if this breaks non-gnu make, and don't have an easy way
> > to test it right now. So someone should do that before it is applied.
>
> I had an impression that our makefile is quite dependent on GNU
> make already. Do people build git without gmake?
You can't build Git without GNU make. At least not without writing
your own Makefile. I say include Fernando's change. ;-)
--
Shawn.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-04-05 6:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-04 20:42 [PATCH] Makefile: Add '+' to QUIET_SUBDIR0 to fix parallel make Fernando J. Pereda
2007-04-05 5:39 ` Junio C Hamano
2007-04-05 6:19 ` Shawn O. Pearce
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).