Just use
vpath %.class $(ROOT)/classes
in your makefile
Armen Yampolsky wrote:
>
> I have a problem with this approach and using make, (probably because
> I'm not using make correctly), in that if I use the -d option and use a
> separate .class directory tree, make doesn't recognize the up-to-date
> files there and recompiles everything anyway. I can never get the
> "Nothing to be done for `CLASSES'" message when my Makefile looks like
>
> CP = $(ROOT):$$CLASSPATH
> COMPILER = jikes
> VM = java
> COPTIONS = -g -deprecation -depend -d $(ROOT)/classes
> ROPTIONS = -Daxiomroot=$(ROOT)
>
> [a listing of java files here]
>
> %.class: %.java
> cd $(@D); $(COMPILER) $(COPTIONS) -classpath $(CP) $(<F)
>
> run: $(CLASSES)
> $(VM) $(ROPTIONS) -classpath $(CP) axiomsl.PMRunner
>
> Any ideas?
> -A.
>
> ___________________________
> Armen Yampolsky
> Axiom Software Labs
> New York
--
Dipl.-Ing. (FH) Markus Fritz <[EMAIL PROTECTED]>
TC-Interactive GmbH * Alt-Würtemberg-Allee 89 * 71638 Ludwigsburg
Tel.: +49 -7141-128-214 Fax: +49 -7141-128-240