This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: Fix "make clean" in libjava


Hi People,

Michael Koch pointed out to me that "make clean" is
broken under libjava because of command-line-length
issues. At first, I thought that this was because
of my "compile all sourcefiles" patch, but looking
into this, I don't see how that patch could have anything
to do with this issue. Anyway, this patch aims
to fix "make clean".

Tested on (i686-pc-linux-gnu,i686-pc-linux-gnu,i686-pc-mingw32).
Okay to commit?

P.S. This patch's behavior is equivalent to the pre-patch
behavior in that it only deletes .lo files and not .o files.
Is this correct?

-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/

ChangeLog
2003-09-13  Mohan Embar  <gnustuff@thisiscool.com>

	* Makefile.am: (MOSTLYCLEANFILES) Removed $(javao_files)
	because of command-line-length issues.
	(mostlyclean-local): New target patterned after clean-local
	which recursively deletes all .lo files.
	* 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	13 Sep 2003 21:46:16 -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_files) $(nat_headers) $(c_files) $(x_javao_files) $(x_nat_files) $(x_nat_headers)
 CLEANFILES = libgcj-@gcc_version@.jar
+
+mostlyclean-local:
+## We just remove every .lo file that was created.
+	find . -name '*.lo' -print | xargs rm -f
 
 clean-local:





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]