[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Have make run shell comand but not in a target
From: |
Paul D. Smith |
Subject: |
Re: Have make run shell comand but not in a target |
Date: |
Tue, 28 Jan 2003 07:34:58 -0500 |
%% Jens Schweikhardt <address@hidden> writes:
js> On Mon, Jan 27, 2003 at 10:23:02AM +0100, Yanghui Bian wrote:
js> # Hello,
js> # In my make file, I need to include the sub makefile which
js> # is in CVS system. I write it as fllows:
js> # $(shell cvs co my_test)
js> # include ./my_test/Makefile
js> #
js> # It works fine. But I want make to echo the command "cvs co my_test"
js> # result as I run in shell.
js> I'm not sure I understand what you want, exactly. Maybe this (untested):
js> $(shell echo "cvs co my_test"; cvs co my_test)
This won't work, because $(shell ...) is like ``.
You need something like:
$(shell echo "cvs co my_test" 1>&2; cvs co my_test)
to send the message to stderr instead of stdout.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist