I have a project that can be completed in any language. I wrote my project in Java. For the submission, the professor asks for a tar of our source code along with a makefile. From what I have been reading, it sounds as if it is not necessary to have a makefile for a Java program. I also understand that it is still possible to create a makefile. I have attempted to look at several samples for creating a makefile, but have run into several problems. If I were to bypass the makefile, what files would I need to include in my submission? My best guess is to include the .class file or the .xml (Ant project, I am working in NetBeans). Also, would I need to include anything else in place of the makefile?
EDIT: My attempt at creating a makefile looks like this:
JFLAGS = -g
JC = javac
#
.SUFFIXES: .java .class
.java.class:
$(JC) $(JFLAGS) $*.java
CLASSES = \
QuickSort.java \
default: classes
classes: $(CLASSES:.java=.class)
clean:
$(RM) *.class
It's actual filename is Makefile.mak. I have tried a couple different ways of running it. When I just type in make in MinGW, I get "make: *** No targets specified and no makefile found. Stop." I have also tried just entering Makefile.mak. This produces a long list of commands not found.