title: Creating a Makefile for jar executable
body: <p>I am currently working with the following Makefile:</p>
  
  <pre><code>    JAVAC=javac
      sources = $(wildcard *.java)
      classes = $(sources:.java=.class)
  
      all: myProgram
  
      myProgram: $(classes)
  
      clean :
          rm -f *.class
  
      %.class : %.java
          $(JAVAC) $&lt;
  </code></pre>
  
  <p>myProgram was orignally just a .java file, but I've replaced it with a .jar executable.  I still essentially just want to be able to do something simple like:</p>
  
  <pre><code>    make myProgram
  </code></pre>
  
  <p>How can I modify my Makefile to accomplish this?  Thanks for any input/suggestions.</p>