Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jan 2002 01:37:27 +0900
From:      "Akinori MUSHA" <knu@iDaemons.org>
To:        Mikhail Teterin <mi@aldan.algebra.com>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: ports/irc/sirc Makefile ports/irc/zircon Makefile         ports/japanese/bjfilter850 Makefile ports/japanese/easypr Makefile         ports/japanese/edict Makefile ports/japanese/emacs20-emcws         Makefile ports/japanese/epwutil Makefile ...
Message-ID:  <86sn8pazaw.wl@archon.local.idaemons.org>
In-Reply-To: <200201291616.g0TGGsQ90665@aldan.algebra.com>
References:  <200201291108.g0TB8qx51380@freefall.freebsd.org> <200201291616.g0TGGsQ90665@aldan.algebra.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At Tue, 29 Jan 2002 11:16:51 -0500 (EST),
Mikhail Teterin wrote:
> On 29 Jan, Akinori MUSHA wrote:
> >   Log:
> >   Use ${ECHO_CMD} instead of ${ECHO}  where you mean the echo command;
> >   the ECHO macro is set to "echo"  by default, but it is set to "true"
> >   if make(1)  is invoked with the  -s option while ECHO_CMD  is always
> >   set to the echo command.
> 
> Actually, in my  opinion, using shell comment -- hash  -- is even better
> instead of ECHO (not ECHO_CMD).

I think you mean ECHO_MSG here. :)

ECHO_MSG is used to output an informational message to a terminal,
while ECHO_CMD is used to output a string to a file or through a pipe.

The difference between them is that ECHO_MSG can be disabled by
setting it to a null command (true) for automated building, while
ECHO_CMD may not be disabled because it is essential to be functional
in order to output given strings properly.

The problem I fixed is that ECHO was used where it should be ECHO_CMD
- as explained in the commit log, ECHO can be set to a null command
when make(1) is invoked with the -s option.

>  	foo:
> -		@${ECHO} bar
> +		# bar
> 
> Yes, you see the  extraneous ``#'' on the output, but  it should be much
> lighter on  the system. Shell ignores  the line, but make  echos it out.
> And it looks neater in the Makefile.

That's an idea.  They are almost equivalent except the # character, as
'make -s' suppresses the output. :)

-- 
                     /
                    /__  __            Akinori.org / MUSHA.org
                   / )  )  ) )  /     FreeBSD.org / Ruby-lang.org
Akinori MUSHA aka / (_ /  ( (__(  @ iDaemons.org / and.or.jp

"Somewhere out of a memory.. of lighted streets on quiet nights.."

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86sn8pazaw.wl>