bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Windows paths with make 3.81


From: Eli Zaretskii
Subject: Re: Windows paths with make 3.81
Date: Mon, 23 Mar 2009 21:04:19 +0200

> Date: Mon, 23 Mar 2009 13:44:31 +0300
> From: "Alexander V. Trushkin" <address@hidden>
> 
> In spite of that the upper directory in Windows contains files of the
> kind ..\*.x, the construction of the type:
> 
>     $(wildcard ..\*.x)
> 
> returns an empty list as well as
> 
>      a : ..\*.x
> 
> does not find any prerequisite, though
> 
>      a : ..\b
> 
> does work, and everything works when
> '\' is replaced by '/'.

This is a ``feature'' of the $wildcard function: a backslash is an
escape character, not a directory separator.  So "..\*.x" means files
that literally include the * in their names (of course, on Windows,
there cannot be such files).  Using the forward slash is the way to
go.

> Maybe it will be interesting for you in order to make the behaviour
> uniform both in Unix and Windows versions.

This behavior _is_ uniform on Unix and Windows.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]