|
From: | Peng Yu |
Subject: | Re: How to test if a file is existed or not? |
Date: | Tue, 20 May 2008 17:32:33 -0500 |
Hi Philip,
I missed that part. Now I see that I should use -include.
Thanks,
PengOn Tue, May 20, 2008 at 5:24 PM, Philip Guenther <address@hidden> wrote:
On Tue, May 20, 2008 at 4:10 PM, Peng Yu <address@hidden> wrote:If you mean "include" as in "make part of the build" then the
> I want to include a file only if it is existed. Is there something in gmake
> that can do this?
$(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
[Prev in Thread] | Current Thread | [Next in Thread] |