help-make
[Top][All Lists]
Advanced

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

RE: Automatic dependencies for linked libraries


From: Paul Smith
Subject: RE: Automatic dependencies for linked libraries
Date: Thu, 25 Mar 2010 18:02:55 -0400

On Thu, 2010-03-25 at 15:58 -0500, Steve Deiters wrote:
>   $(if $(shell if [ -e $(d)/lib$(l).a ]; then echo "X"; fi),\

You should be able to do a good bit better, speed-wise, by using
$(wildcard ...) here; s'thing like:

        $(if $(wildcard $(d)/libs$(l).a), \

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