title: Setting a variable in make
body: <p>This is my makefile</p>
  
  <pre><code>file1:
      uglifyjs myfile1.js -c | gzip -c -9 &gt; myfile1.min.js
  
  file2:
      uglifyjs myfile2.js -c | gzip -c -9 &gt; myfile2.min.js
  </code></pre>
  
  <p>How can I change my makefile to remove duplicate code:</p>
  
  <pre><code>file1:
      FILE=myfile1.js
      #How to call build target?
  
  file2:
      FILE=myfile2.js
  
  build:
      uglifyjs $(FILE).js -c | gzip -c -9 &gt; $(FILE).min.js
  </code></pre>
  
  <p>I know I can use <code>make build</code> but is there another way to do this without invoking make recursively?</p>