Hello,
I am running the make version 3.75 on NT to compile java. The dependency
workds if I compliled the java sorce code and placed *.class in the
local directory. But, if I placed all class file to another directory,
or the source code in another directory, then the dependency does not
work. I am not sure this is the bug or not, but please check my
following makefile and let me know what was the problem. Thank you for
your help. (the makefile in ./ directory, the source file and the
module.mk in ./depend directory, the class file in ./lib dirctory)
The makefile:
MODULES = depend
VPATH = $(MODULES):lib
include $(patsubst %,%/module.mk,$(MODULES))
CLASSES := $(subst .java,.class,$(SRC))
%.class : %.java
javac -d lib $?
ALL:: $(CLASSES)
The module.mk:
SRC += $(wildcard depend/Dependency2.java)
Regards,
Yude