title: Can GNU make handle filenames with spaces?
body: <p>I have a directory containing several files, some of which have spaces in their names:</p>
  
  <pre><code>Test workspace/
  Another directory/
  file1.ext
  file2.ext
  demo 2012-03-23.odp
  </code></pre>
  
  <p>I use GNU's <code>$(wildcard)</code> command on this directory, and then iterate over the result using <code>$(foreach)</code>, printing everything out. Here's the code:</p>
  
  <pre><code>FOO := $(wildcard *)
  $(info FOO = $(FOO))
  $(foreach PLACE,$(FOO),$(info PLACE = $(PLACE)))
  </code></pre>
  
  <p>Here's what I would expect to see printed out:</p>
  
  <pre><code>Test workspace
  Another directory
  file1.ext
  file2.ext
  demo 2012-03-23.odp
  </code></pre>
  
  <p>Here's what I would actually get:</p>
  
  <pre><code>Test
  workspace
  Another
  directory
  file1.ext
  file2.ext
  demo
  2012-03-23.odp
  </code></pre>
  
  <p>The latter is obviously of no use to me. The <a href="http://www.gnu.org/software/make/manual/html_node/Wildcard-Function.html">documentation</a> for <code>$(wildcard)</code> flat-out states that it returns a "space-separated list of names" but completely fails to acknowledge the huge problems this raises. Nor does the <a href="http://www.gnu.org/savannah-checkouts/gnu/make/manual/html_node/Foreach-Function.html">documentation</a> for <code>$(foreach)</code>.</p>
  
  <p>Is it possible to work around this? If so, how? Renaming every file and directory to remove the spaces is not an option.</p>