Keith T. Garner wrote:
> >
> > On Mon, Sep 14, 1998 at 07:17:17, David Warnock said:
> > > I thought I should be able to connect "find . -name *.class" to
> "rm"
> > > somehow using redirection or pipes but cannot get it to work.
> >
> > You were very close to one possible solution :)
> >
> > find . -name *.class | xargs rm
> >

Paul Revis wrote:
> All of which is more complicated than my favorite method, which is to
> specify a separate .class file directory with the "-d" option (javac
> or
> jikes); then it's just
> 
> rm -r classes\*

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

Reply via email to