title: Makefile not executing the commands as expected
body: <p>I'm using the following Makefile, which should check whether the files are in some directory <code>*.rpm</code>, if the files hasn't been found i'm going to execute some command (run a script or make the rpm)</p>
  
  <p>Here's a snippet from my Makefile</p>
  
  <pre><code>include /home/user/workspace/test/exec_recipe.mk
  export BUILD_LOGS_DIR = $(CURDIR)/build_logs
  .PHONY: my_rpm
  libpdutil_rpm:
              @echo "Making target 'libpdutil_rpm'. Time: $$(date +%T)"
              cd /home/user/workspace/test/build/test &amp;&amp; $(call exec_recipe,$(ls /home/user/workspace/test/build/test/rpmbuild/RPMS/x86_64d/*.rpm) || $(./test.sh),test.log,)
              @echo "Finished making target 'my_rpm'. Time: $$(date +%T)"
  </code></pre>
  
  <p>And here's the <code>exec_recipe.mk</code></p>
  
  <pre><code>SHELL:=/bin/bash
  exec_recipe = \
      echo "The logs dir is: $$BUILD_LOGS_DIR"; \
      log_name="$(2)"; \
      echo "The log name is $$log_name"; \
      cmd="$(1)"; \
      eval "$$cmd" 2&gt;&amp;1 | tee -a "$$BUILD_LOGS_DIR/$$log_name"; rc="$${PIPESTATUS[0]}"; \
      if [ $$rc = 0 ]; then \
          res="PASS"; \
      else \
          res="FAIL"; \
      fi; \
      flock $(SUMMARY) echo "Making target '$@': $$res" &gt;&gt; $(SUMMARY); \
      exit $$rc
  </code></pre>
  
  <p>So the problem is when it's reaching the execution of the <code>exec_recipe.mk</code> it giving me some errors:</p>
  
  <p><code>/bin/bash: eval: line 0: syntax error near unexpected token</code>||'<code>
  /bin/bash: eval: line 0:</code> || '</p>
  
  <p>I'm sure that i'm doing something wrong..
  I need the helper make file, because i'm using it for other purposes as well</p>