help-make
[Top][All Lists]
Advanced

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

Re: how can i get a list of prerequisites for a target


From: Paul D. Smith
Subject: Re: how can i get a list of prerequisites for a target
Date: Wed, 28 May 2003 17:41:16 -0400

%% address@hidden writes:

  bg> If I need to have this details else where, not in the command
  bg> script. Is it possible?.

No.  As someone else said, your only option is to do something like:

  ALL_PREREQS = a b c d

  include test.mk

  all: $(ALL_PREREQS)

then in test.mk you can examine the value of ALL_PREREQS.

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