title: make error (Windows) : line 1: syntax error near unexpected token `,'
body: <p>I'm a starter at this(make), and having some problems trying to grep for a text in a file (as part of the make process on Windows). The larger problem I'm trying to solve is to check whether all binary executables in a given directory have their respective dependencies satisfied. I use depends.exe (Dependency Walker) for the later part, whose output file I'm trying to grep, and possibly abort the build process if the dependency validation fails.</p>
  
  <pre><code>binary-dependency-validate:
  for BINARYEXEC in $(shell $(PATH_TO_FIND_EXE) $(PRE_DEFINED_DIR) -name "*.exe"); do \
     $(PATH_TO_DEPENDS_EXE) /c /pb /ot $(PRE_DEFINED_DIR)/$$BINARYEXEC-depends.txt $(PRE_DEFINED_DIR)/$$BINARYEXEC ; \
     ifeq ($(shell $(PATH_TO_GREP_EXE) "Error: At least one required implicit or forwarded dependency was not found." $(PRE_DEFINED_DIR)/$$BINARYEXEC-depends.txt),); \
        @echo "Dependency ok" ; \
     endif ; \
  done
  </code></pre>
  
  <p>I'm encountering the following error :</p>
  
  <pre><code>line 1: syntax error near unexpected token `,'
  </code></pre>
  
  <p>Any suggestions would greatly help. I looked at <a href="https://stackoverflow.com/questions/4483313/make-error-for-ifeq-syntax-error-near-unexpected-token">this</a> post and tried aligning ifeq without indentation as well (that didn't help either.)</p>