[Top][All Lists]

[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
    # doesn't exist

 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]