From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: balducci@units.it Newsgroups: gmane.emacs.bugs Subject: bug#13962: 24.3: build fails when make run as a sub-make process Date: Thu, 14 Mar 2013 19:07:33 +0100 Message-ID: <8864.1363284477@dschgrazlin2.units.it> Reply-To: balducci@units.it NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1363285497 24395 80.91.229.3 (14 Mar 2013 18:24:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Mar 2013 18:24:57 +0000 (UTC) To: 13962@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 14 19:25:20 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UGCq7-0002kS-UV for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Mar 2013 19:25:20 +0100 Original-Received: from localhost ([::1]:42209 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGCpl-0007xd-AX for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Mar 2013 14:24:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGCpg-0007uc-Gb for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2013 14:24:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGCpe-0006xV-1g for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2013 14:24:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGCpd-0006xQ-Uf for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2013 14:24:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UGCqn-0002El-W6 for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2013 14:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: balducci@units.it Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Mar 2013 18:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13962 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13632855568585 (code B ref -1); Thu, 14 Mar 2013 18:26:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Mar 2013 18:25:56 +0000 Original-Received: from localhost ([127.0.0.1]:54542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGCqg-0002EP-RI for submit@debbugs.gnu.org; Thu, 14 Mar 2013 14:25:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44719) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UGCSU-0001f2-Ei for submit@debbugs.gnu.org; Thu, 14 Mar 2013 14:00:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGCRD-0005qj-FE for submit@debbugs.gnu.org; Thu, 14 Mar 2013 13:59:36 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:38100) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGCRD-0005qX-BQ for submit@debbugs.gnu.org; Thu, 14 Mar 2013 13:59:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGCRB-0006Ja-VC for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2013 13:59:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGCR8-0005m0-A7 for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2013 13:59:33 -0400 Original-Received: from dschgrazlin2.univ.trieste.it ([140.105.55.81]:42345 helo=dschgrazlin2.units.it) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGCR8-0005ll-02 for bug-gnu-emacs@gnu.org; Thu, 14 Mar 2013 13:59:30 -0400 Original-Received: from localhost (loopback [127.0.0.1]) by dschgrazlin2.units.it (8.14.6/8.14.6) with ESMTP id r2EI7asg008878 for ; Thu, 14 Mar 2013 19:07:36 +0100 Original-Received: from dschgrazlin2.units.it ([127.0.0.1]) by localhost (dschgrazlin2.units.it [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qzpYoo4U10dS for ; Thu, 14 Mar 2013 19:07:36 +0100 (CET) Original-Received: from dschgrazlin2.units.it (loopback [127.0.0.1]) by dschgrazlin2.units.it (8.14.6/8.14.6) with ESMTP id r2EI7Xg8008865 for ; Thu, 14 Mar 2013 19:07:33 +0100 X-Mailer: MH-E 8.5; nmh 1.5; GNU Emacs 24.3.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Thu, 14 Mar 2013 14:25:52 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:72493 Archived-At: 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