[Top][All Lists]

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

Re: Problem with target specific variables

From: Paul D. Smith
Subject: Re: Problem with target specific variables
Date: Fri, 18 Apr 2003 08:27:11 -0400

%% Patrick West <address@hidden> writes:

  pw> I understand what is happening. PROG is set to $@, and $(PROG) is
  pw> expanded within the context of the target. So in prog1info, for
  pw> example, $@ is prog1info, so $(PROG) expands to prog1info.


  pw> The output I get is:
  pw> prog1info
  pw> prog1
  pw> prog2info
  pw> prog2

  pw> The output I would like to get is:
  pw> prog1
  pw> prog1
  pw> prog2
  pw> prog2

  pw> Any suggestions?

You can't do this using target-specific variables by themselves.  If you
get GNU make 3.80 you can use $(eval ...) to do it.

 Paul D. Smith <address@hidden>          Find some GNU make tips at:            
 "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]