From: balducci@units.it
To: 13962@debbugs.gnu.org
Subject: bug#13962: 24.3: build fails when make run as a sub-make process
Date: Thu, 14 Mar 2013 19:07:33 +0100 [thread overview]
Message-ID: <8864.1363284477@dschgrazlin2.units.it> (raw)
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
next reply other threads:[~2013-03-14 18:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-14 18:07 balducci [this message]
2013-03-14 18:26 ` bug#13962: 24.3: build fails when make run as a sub-make process Glenn Morris
2013-03-15 11:41 ` balducci
2013-03-18 21:04 ` Paul Eggert
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=8864.1363284477@dschgrazlin2.units.it \
--to=balducci@units.it \
--cc=13962@debbugs.gnu.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.