Re: Java Makefile [ was Delete all class files ]

1998-09-24 Thread Travis Shirk
On Tue, 22 Sep 1998 [EMAIL PROTECTED] wrote: > > 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); $(COMPIL

Re: Delete all class files

1998-09-23 Thread peter . pilgrim
> Thanks to everyone who wrote back! FWIW, the simplest solution for my > purposes turned out to be the addition of the following line: > > Markus Fritz wrote: > > > > Just use > > > > vpath %.class $(ROOT)/classes > > > > in your makefile > > > Cheers, > -Armen > Please, Just out

Java Makefile [ was Delete all class files ]

1998-09-22 Thread peter . pilgrim
> 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

Re: Delete all class files

1998-09-16 Thread Armen Yampolsky
Thanks to everyone who wrote back! FWIW, the simplest solution for my purposes turned out to be the addition of the following line: Markus Fritz wrote: > > Just use > > vpath %.class $(ROOT)/classes > > in your makefile Cheers, -Armen > > Armen Yampolsky wrote: > > > > I have a p

Re: Delete all class files

1998-09-16 Thread Paul Reavis
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

Re: Delete all class files

1998-09-16 Thread Markus Fritz
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 th

Re: Delete all class files

1998-09-15 Thread Armen Yampolsky
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

Re: Delete all class files

1998-09-15 Thread Paul Reavis
David Warnock wrote: > > Paul Reavis 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\* > > Ok, this is neat. Do I get a complete duplic

Re: Delete all class files

1998-09-15 Thread Michael D. James
You didn't specify whether you wanted an easy way or a hard way. If you want a hard way, hack the following recursive perl script to only remove *.class. #!/usr/local/bin/perl use English; sub delete_directory_tree { my($dir) = shift; my($path); unless (opendir(DIR, $dir)) {

Re: Delete all class files

1998-09-15 Thread Robert Dietrick
You can use xargs to construct a list of files for rm to delete. This should work: find ./ -name '*.class' -print | xargs rm On Mon, 14 Sep 1998, David Warnock wrote: > Hi, > > I am using Jikes 0.37 and whilst I trust it's -depends option I like to > delete all cl

Re: Delete all class files

1998-09-15 Thread David Warnock
Paul Reavis 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\* Ok, this is neat. Do I get a complete duplicate of my source directories for the clas

Re: Delete all class files

1998-09-15 Thread Paul Reavis
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 *.clas

Re: Delete all class files

1998-09-15 Thread Justin Lee
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 xargs

Re: Delete all class files

1998-09-15 Thread Michael D. James
dence: list > Resent-Sender: [EMAIL PROTECTED] > > Hi, > > I am using Jikes 0.37 and whilst I trust it's -depends option I like to > delete all class files prior to building a release. I am also very new > to Linux and cannot see how to delete *.class files from a dir

Re: Delete all class files

1998-09-15 Thread Keith T. Garner
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 xargs is a wonderful progr

RE: Delete all class files

1998-09-15 Thread Kapoor, Nishikant X
ros.com/nkapoor ---~~~-- > -Original Message- > From: David Warnock [SMTP:[EMAIL PROTECTED]] > Sent: Monday, September 14, 1998 2:17 PM > To: java-linux > Subject: Delete all class files > > Hi, > > I a

Delete all class files

1998-09-15 Thread David Warnock
Hi, I am using Jikes 0.37 and whilst I trust it's -depends option I like to delete all class files prior to building a release. I am also very new to Linux and cannot see how to delete *.class files from a directory tree. Under windows NT I could use "del *.class /s" but "rm