[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: VPATH usage
From: |
Eli Zaretskii |
Subject: |
Re: VPATH usage |
Date: |
Thu, 15 Feb 2001 13:23:52 +0200 (IST) |
On 14 Feb 2001, Paul D. Smith wrote:
> See the docs. VPATH treats ":" as a path separator, normally.
I don't think `:' is of any significance here, unless the Make port
used is the Cygwin port and it was being run in the ``Unix mode''.
Other DOS/Windows ports take care to use `;' instead of `:' as the
separator in VPATH.
> There is some info in the README.W32 file about this. You didn't give
> any information about what OS you're running on (although we can infer
> either DOS or Windows), and it's not clear how you've compiled your
> version of GNU make, nor which version you're using, etc.
FWIW, I just tried this Makefile with the DJGPP (a.k.a. MS-DOS) port
of Make 3.79.1, and it indeed doesn't remove C:/temp from VPATH.
However, if I remove the "C:/" part, it isn't removed either. So the
colon doesn't seem to be the culprit.
The following modification of the original does work, however (VPATH
comes out empty):
CFLAGS = -g -I. -I$(RELEASE)/source
RELEASE = C:/temp.c
VPATH = $(filter-out -I.,$(filter -I%.c,$(CFLAGS)))