Hi,
I am trying to create a make file for a java project.
It has a directory structure look like this:
src folder
-package1
-java files
-package2
-java files
-package3
-java files
-package4
-java files
I am new to makefile, but tried to create one according to some tutorials on google,
but it doesn't work.
Can anyone help me with this?
Thanks for your time!
JFLAGS = -g
JC = javac
.SUFFIXES: .java .class
.java.class:
$(JC) $(JFLAGS) $*.java
CLASSES=\
./src/package1/*.java \
./src/package2/*.java \
./src/package3/*.java \
./src/package4/*.java
default: classes
classes:
$(CLASSES:.java=.class)
clean:
$(RM) *.class