title: Makefile not working on Windows (mingw32-make, Error 255, unexpected at this time)
body: <p>I have a makefile that works under Cygwin but when I try and run Mingw32-make.exe from cmd.exe I am encountering an error: </p>
  
  <pre><code>all: my_file
  
  my_file: \
    static/XML/head.xml \
    ../lib/Dependencies/common/1.0 ../lib/Dependencies/licensing/1.0 ../lib/Dependencies/json/1.0 \
    src/common \
    src/MainFolder \
    static/XML/tail.xml
    $(build-file)
  
  # Simple file and directory concatenation.
  define build-file
  @for dep in $^; do \
    if [ -d $$dep ]; then \
      for file in $$dep/*.lua; \
      do \
        cat $$file; \
        echo; \
      done \
    else \
      cat $$dep; \
      echo; \
    fi \
  done &gt; bin/$@.lua
  @echo 'BUILT $@'
  endef
  </code></pre>
  
  <p>When I try and run mingw32-make.exe I get the following error:</p>
  
  <pre><code>dep was unexpected at this time.
  Makefile:9: recipe for target 'my_file' failed
  mingw32-make: *** [my_file] Error 255
  </code></pre>
  
  <p>The file's indentation is set to tabs.</p>
  
  <p>Nothing I've tried so far has worked. Can anyone please assist? What can I do to get this working? </p>