JFLAGS = -d bin -cp lib/slick.jar:lib/lwjgl.jar
JC = javac
.SUFFIXES: .java .class
.java.class: $(JC) $(JFLAGS) src/$*.java
CLASSES = \
Game.java \
Block.java \
BlockMap.java \
default: classes
classes: $(CLASSES:.java=.class)
clean: $(RM) bin/*.class
My source files are in src/ and I want to the compiled files to be in bin/ . When I run make, it gives me this error
makefile:7: *** multiple target patterns. Stop.
The problem is here:
and here:
These are no rules but commands. And commands must be on its own lines with a tab at the beginning of the line.
Not that this are all problems with Makefiles and Java in general and this Makefile in particular.