[Top][All Lists]

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

Re: make -f $dir/Makefile clean

From: Paul D. Smith
Subject: Re: make -f $dir/Makefile clean
Date: Mon, 11 Nov 2002 11:01:40 -0500

%% address@hidden (Allan Wind) writes:

  aw> On 2002-11-11 09:16:27, Paul D. Smith wrote:
  aw> I noticed in the archives that there is no way of getting the
  aw> value of -f, but perhaps there is a way of solving this problem in
  aw> a correct and elegant way?

  >> Not really; not in versions before 3.80.

  aw> What are you referring to in 3.80 that may help me out?

You can look in the $(MAKEFILE_LIST) variable to find the pathname of
the current makefile that you're reading.  Grabbing the prefix from that
and using it in the find operation _should_ get you what you need.

 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]