help-make
[Top][All Lists]
Advanced

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

Re: testing if a file exists


From: Paul D. Smith
Subject: Re: testing if a file exists
Date: Wed, 30 Jan 2002 13:33:38 -0500

The fastest way to test if a file exists is with the wildcard function:

  ifeq ($(wildcard matrix.h),matrix.h)
    # exists
  else
    # doesn't exist
  endif

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