bug-make
[Top][All Lists]
Advanced

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

Re: bug in $(wildcard) on Windows?


From: Paul D. Smith
Subject: Re: bug in $(wildcard) on Windows?
Date: Thu, 17 Feb 2005 08:50:33 -0500

%% David Parrott <address@hidden> writes:

  dp> I noticed today that if I use $(wildcard) on a path or file which
  dp> contains spaces on Microsoft Windows, it does not work even if I
  dp> place the full path in quotes. The wildcard never returns any file
  dp> names.

The short answer is that GNU make doesn't support filenames with spaces
in them.


The slightly longer answer is that GNU make uses whitespace as a word
delimiter, and there is NO reliable way to quote whitespace in words in
all the different places where make chops up lists.

In this case, the arguments to wildcard are a list of filename patterns
to be matched; an invocation like $(wildcard C:\My Programs\*.exe) will
match TWO patterns: the first one "C:\My" and the second one
"Programs\*.exe".

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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