Patch: Fix "make clean" in libjava (Updated)
Mohan Embar
gnustuff@thisiscool.com
Tue Sep 16 08:35:00 GMT 2003
Hi Tom,
>Yeah, libtool rm is preferred.
>
>Mohan, you might as well just take all the .o/.lo files out of
>MOSTLYCLEANFILES, since mostlyclean-local will be removing them
>anyway.
>
>Change your patch to do these things and it is ok to go in. Thanks
>for doing this.
I've updated and tested the patch, but would prefer you to take one
last glance at it before I feel comfortable putting it in, especially
the ChangeLog.
Note: the .d files are still left over after the clean. Is this okay?
-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/
ChangeLog
2003-09-16 Mohan Embar <gnustuff@thisiscool.com>
* Makefile.am: (MOSTLYCLEANFILES) Removed libtool objects
because of command-line-length issues.
(mostlyclean-local): New target patterned after clean-local
which recursively deletes all libtool objects using 'libtool rm'.
* Makefile.in: Rebuilt.
Index: Makefile.am
===================================================================
RCS file: /cvsroot/gcc/gcc/libjava/Makefile.am,v
retrieving revision 1.320
diff -u -2 -r1.320 Makefile.am
--- Makefile.am 10 Sep 2003 17:39:09 -0000 1.320
+++ Makefile.am 16 Sep 2003 07:56:33 -0000
@@ -357,6 +357,10 @@
$(all_java_class_files): libgcj-@gcc_version@.jar
-MOSTLYCLEANFILES = $(javao_files) $(nat_files) $(nat_headers) $(c_files) $(x_javao_files) $(x_nat_files) $(x_nat_headers)
+MOSTLYCLEANFILES = $(nat_headers) $(x_nat_headers)
CLEANFILES = libgcj-@gcc_version@.jar
+
+mostlyclean-local:
+## We just remove every .lo file that was created.
+ find . -name '*.lo' -print | xargs $(LIBTOOL) rm -f
clean-local:
More information about the Java-patches
mailing list