summaryrefslogtreecommitdiff
path: root/libjava/Makefile.am
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2004-09-21 17:00:56 +0000
committerTom Tromey <tromey@gcc.gnu.org>2004-09-21 17:00:56 +0000
commit34f87940b2ec98215e6b366d33d404144ecdbef5 (patch)
treef6c4f2d52a10ef5eb2f7b2d5d31286a650fe7b70 /libjava/Makefile.am
parentb8b639c915c46441180e004a8dacc66553c17c24 (diff)
re PR libgcj/16869 (too long list of arguments in "make clean")
PR libgcj/16869: * Makefile.in: Rebuilt. * Makefile.am (MOSTLYCLEANFILES): Removed. (mostlyclean-local): Remove header files. From-SVN: r87813
Diffstat (limited to 'libjava/Makefile.am')
-rw-r--r--libjava/Makefile.am7
1 files changed, 3 insertions, 4 deletions
diff --git a/libjava/Makefile.am b/libjava/Makefile.am
index 835336b0d60..862e86e2770 100644
--- a/libjava/Makefile.am
+++ b/libjava/Makefile.am
@@ -523,15 +523,14 @@ libgcj-@gcc_version@.jar: $(all_java_class_files)
endif
-# Note: The libtool objects are removed by mostlyclean-local
-# because of command-line-length issues.
-MOSTLYCLEANFILES = $(nat_headers) $(xlib_nat_headers)
-
CLEANFILES = libgcj-@gcc_version@.jar
mostlyclean-local:
## Use libtool rm to remove each libtool object
find . -name '*.lo' -print | xargs $(LIBTOOL) rm -f
+## Remove headers. We use GNU make trickery because otherwise
+## the command line is too long.
+ @: $(foreach header,$(nat_headers) $(xlib_nat_headers) $(gtk_jni_headers),$(shell rm -f '$(header)'))
clean-local:
## Remove every .class file that was created.