help-make
[Top][All Lists]
Advanced

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

Re: Use of %


From: Paul D. Smith
Subject: Re: Use of %
Date: Thu, 19 Jul 2001 23:26:16 -0400

%% Erik Elliott <address@hidden> writes:

  ee> STDCOMOBJS= $(COMMONSRCS:%.cxx=$(STDOBJDIR)/%/%.o)

  ee> How can I make the pattern substitution happen more than the one
  ee> time that it wants to?

What about:

  STDCOMOBJS = $(foreach f,$(basename $(COMMONSRCS)),$(STDOBJDIR)/$f/$f.o)

?

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "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]