[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to test if a file is existed or not?
From: |
Philip Guenther |
Subject: |
Re: How to test if a file is existed or not? |
Date: |
Tue, 20 May 2008 16:24:50 -0600 |
On Tue, May 20, 2008 at 4:10 PM, Peng Yu <address@hidden> wrote:
> I want to include a file only if it is existed. Is there something in gmake
> that can do this?
If you mean "include" as in "make part of the build" then the
$(wildcard) function may do the trick.
If you mean 'include' in the "treat as additional Makefile contents",
then the answer is yes, and it is described on the same page in the
GNU make info manual as the normal "include" directive.
Philip Guenther