title: make can't read file written by itself
body: <p>Makefile:</p>
  
  <pre><code>SHELL=/bin/bash
  .PONY: stamp diff
  .DEFAULT_GOAL := all
  
  diff:
      diff &lt;(./stamp.txt) &lt;(docker-compose -f docker-compose.test.yml up)
  
  stamp:
      docker-compose -f docker-compose.test.yml up &gt; stamp.txt
  
  all: stamp diff
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>$ make
  docker-compose -f docker-compose.test.yml up &gt; stamp.txt
  Starting ci-test ... done
  diff &lt;(./stamp.txt) &lt;(docker-compose -f docker-compose.test.yml up)
  /bin/bash: ./stamp.txt: Permission denied
  Starting ci-test ... done
  0a1,4
  &gt; Attaching to ci-test
  &gt; ci-test    | Python 3.7.3
  &gt; ci-test exited with code 0
  &gt; 
  \ No newline at end of file
  Makefile:26: recipe for target 'diff' failed
  make: *** [diff] Error 1
  
  $ ll
  total 32
  drwxrwxr-x  4 mirror mirror 4096 May 26 07:38 ./
  drwxrwxr-x 47 mirror mirror 4096 May 24 15:58 ../
  -rw-rw-r--  1 mirror mirror  210 May 26 07:34 docker-compose.test.yml
  -rw-rw-r--  1 mirror mirror  103 May 26 07:33 .env
  drwxrwxr-x  9 mirror mirror 4096 May 26 07:36 .git/
  drwxrwxr-x  3 mirror mirror 4096 May 24 03:29 .idea/
  -rw-rw-r--  1 mirror mirror  664 May 26 07:38 Makefile
  -rw-rw-r--  1 mirror mirror   92 May 26 07:36 stamp.txt
  
  </code></pre>
  
  <p>Questions. Why I got <code>/bin/bash: ./stamp.txt: Permission denied</code> and how to fix it?</p>