help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: foreach/ordering help


From: Paul D. Smith
Subject: Re: foreach/ordering help
Date: Sat, 2 Nov 2002 20:41:22 -0500

%% Russell <address@hidden> writes:

  >> CSRCS = file1.c file2.c file999.c file1000.c
  >> c.pfs:
  >> @rm -f $@
  >> @$(foreach f,$(CSRCS),$(shell echo $(f) >> $@))

  r> I think each line of the command is spawned as a separate
  r> shell process. Try to keep all the commands in one line
  r> (one process):

He's using make commands like $(foreach ...) and $(shell ...), and those
are evaluated by make before the command script is actually invoked.

So, what you're suggesting won't help...

-- 
-------------------------------------------------------------------------------
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]