I am running Eclipse in windows for doing my homeworks. I have to submit a makefile so that my code (singlefile.java) can be compiled. How can I do this.
I found this. Can it be tested on windows.
EDIT: As per the suggestions, I installed gnu make for windows:
My make file is as follows:
JFLAGS = -g
JC = javac
#
.SUFFIXES: .java .class
.java.class:
$(JC) $(JFLAGS) $*.java
CLASSES = \
singlefile.java \
default: classes
classes: $(CLASSES:.java=.class)
clean:
$(RM) *.class
However, when I run make, I am getting the error:
*** missing separator (did you mean TAB instead of 8 spaces?). Stop.
I am new to make
. What am I missing?