I create one makefile in my project.
JFLAGS = -g
JC = javac
JVM= $(JAVA_HOME)/bin/java
.SUFFIXES: .java .class
.java.class: ; $(JC) $(JFLAGS) $*.java
CLASSES = \
Class1.java \
Class2.java \
Main.java
MAIN = Main
default: classes
classes: $(CLASSES:.java=.class)
run : classes $(JVM) $(MAIN).class
The codes below running and compile my java class but don't execute my run command. finalize the make file and don't execute my run.. Why is doing wrong in my code?
antormaven