On Thu, 2008-02-14 at 02:35 -0500, Robert P. J. Day wrote:
> what is the standard way to check for file existence in a makefile
> and bail if it doesn't exist?  personally, i use:
> 
> $(if $(wildcard <file>),,$(error "<file> is missing, bye bye."))
> 
> is there a better or more popular way?

That's the way I would do it.  Or, if you like, you could use the new
$(or ...) operator (I'm an old Lisp person :-))

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.us
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to