unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13962: 24.3: build fails when make run as a sub-make process
@ 2013-03-14 18:07 balducci
  2013-03-14 18:26 ` Glenn Morris
  2013-03-18 21:04 ` Paul Eggert
  0 siblings, 2 replies; 4+ messages in thread
From: balducci @ 2013-03-14 18:07 UTC (permalink / raw)
  To: 13962

hello,

while building 24.3 I stumbled on the following problem.

The main Makefile contains the following two lines:


   info_misc=`cd $${thisdir}/doc/misc; ${MAKE} -s echo-info`; \

   (info_misc=`cd doc/misc; ${MAKE} -s echo-info`; \

Everything works nicely if I run make from the shell prompt.

However, I usually build emacs with a script which in turn is run from
a Makefile of mine. If I attempt to build this way, I find
that the definitions of info_misc above contain also the make messages
"Entering directory..." "Leaving directory...", which, of course,
break the build.

The problem is that -s suppresses recipe lines echoing, but NOT
directory change messages from make, which make emits when run in a
sub-make process (which is why I do not get errors when runnig from the
shell prompt, while I get errors when running from my script, run by 
make)

The above lines assume that the main Makefile will never be run by a
sub-make, which of course is true most of the time, but is false in my
case.

Everything is fixed joining --no-print-directory with the -s option, but,
as I was told by paul smith on the help-make mail list, that won't work
for non-GNU make. Following paul's suggestion, I propose:

=> use of MAKELEVEL=0, so that GNU make thinks to be a top-most level:
      info_misc=`cd doc/misc && MAKELEVEL=0 ${MAKE} -s echo-info`
   while other make's won't be disturbed
=> sed-ing the ${MAKE} -s echo-info command to strip off any spurios
   directory change message

Apologies if I have overlooked something

and thank you really very much for maintaining and developing emacs


ciao
gabriele





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#13962: 24.3: build fails when make run as a sub-make process
  2013-03-14 18:07 bug#13962: 24.3: build fails when make run as a sub-make process balducci
@ 2013-03-14 18:26 ` Glenn Morris
  2013-03-15 11:41   ` balducci
  2013-03-18 21:04 ` Paul Eggert
  1 sibling, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2013-03-14 18:26 UTC (permalink / raw)
  To: balducci; +Cc: 13962

balducci@units.it wrote:

> => sed-ing the ${MAKE} -s echo-info command to strip off any spurios
>    directory change message

That's how it was originally, prior to:
http://lists.gnu.org/archive/html/emacs-diffs/2012-12/msg00206.html





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#13962: 24.3: build fails when make run as a sub-make process
  2013-03-14 18:26 ` Glenn Morris
@ 2013-03-15 11:41   ` balducci
  0 siblings, 0 replies; 4+ messages in thread
From: balducci @ 2013-03-15 11:41 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 13962


> 
> That's how it was originally, prior to:
> http://lists.gnu.org/archive/html/emacs-diffs/2012-12/msg00206.html

ok, so looks like the change introduced is not completely general.

If I can, I take the freedom to suggest to:

=> either revert the commit
=> or, maybe, go with the MAKELEVEL=0 fix (I haven't tested it, but
   should work fine)

thanks a lot for your time and kindness

ciao
gabriele





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#13962: 24.3: build fails when make run as a sub-make process
  2013-03-14 18:07 bug#13962: 24.3: build fails when make run as a sub-make process balducci
  2013-03-14 18:26 ` Glenn Morris
@ 2013-03-18 21:04 ` Paul Eggert
  1 sibling, 0 replies; 4+ messages in thread
From: Paul Eggert @ 2013-03-18 21:04 UTC (permalink / raw)
  To: 13962-done

Thanks for the report and idea for a fix.
I installed a MAKELEVEL=0 fix into trunk bzr 112086
and am marking this as done.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-03-18 21:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-14 18:07 bug#13962: 24.3: build fails when make run as a sub-make process balducci
2013-03-14 18:26 ` Glenn Morris
2013-03-15 11:41   ` balducci
2013-03-18 21:04 ` Paul Eggert

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).