Hi ,

I am not able to execute the below makefile.

JFLAGS = -g
JC = javac
.SUFFIXES: .java .class
.java.class:
        $(JC) $(JFLAGS) $*.java
CLASSES = .\minimax.java  
default: classes
classes: $(CLASSES:.java=.class)
clean:
        $(RM) *.class

I am getting this error

make: Fatal error in reader: makefile, line 6: Unexpected end of line seen

Any idea,how to solve this?

Works fine for me.. with GNU Make 3.81
Two guesses:
1. You have spaces instead of tabs.
2. Your new-lines in Makefile are in wrong format (DOS or Unix). Run dos2unix or unix2dos.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.