title: Using Rsync with Makefile
body: <p>I am trying to use a makefile to sync some of my directories that are on my pc with my thumb drive. For this purpose, I am using multiple commands in a single target.
  The makefile looks somewhat like this</p>
  
  <pre><code>pend:
      rsync -avhzPu /foo/ /bar/  
      rsync -avhzPu /bob/ /alice/  
  </code></pre>
  
  <p>But, every time I am doing <code>make -f .sync pend</code> only the first command runs and gives some output along with some error</p>
  
  <pre><code>sent 45.78K bytes  received 3.32K bytes  98.20K bytes/sec
  total size is 4.42G  speedup is 89,981.37
  rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]
  .sync:14: recipe for target 'pend' failed
  make: *** [pend] Error 23
  </code></pre>
  
  <p>But when I am running the commands separately it works. I am not sure what wrong I am doing here.</p>