title: Java Makefile "No rule to make target"
body: <p>I am trying to write a makefile for my java program. I've tried looking online and this is what I've come up with.</p>
  
  <pre><code>JFLAGS = -g
  
  JC = javac
  
  JVM = java
  
  FILE=
  
  .SUFFIXES: .java .class
  
  .java.class:
  
          $(JC) $(JFLAGS) $*.java
  
  CLASSES = banker.java
  
  MAIN = Main
  
  default: classes
  
  classes: $(CLASSES:.java=.class)
  
  run: classes
      $(JVM) $(MAIN)
  </code></pre>
  
  <p>I am getting an error that says</p>
  
  <pre><code>No rule to make target 'banker.class', needed by 'classes'. Stop.
  </code></pre>
  
  <p>I only have one class: banker.java  </p>