aboutsummaryrefslogtreecommitdiff
path: root/libjava/Makefile.am
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2002-04-16 15:52:26 +0000
committerTom Tromey <tromey@gcc.gnu.org>2002-04-16 15:52:26 +0000
commitab8471334e092a16b4c0bc78c8027191fd0db7f1 (patch)
treea553b04ba6534c0fe8e96ce72c548a6a5a59f599 /libjava/Makefile.am
parent6344da6f57393a5df75f5738343afc30d1f9ea23 (diff)
downloadgcc-ab8471334e092a16b4c0bc78c8027191fd0db7f1.zip
gcc-ab8471334e092a16b4c0bc78c8027191fd0db7f1.tar.gz
gcc-ab8471334e092a16b4c0bc78c8027191fd0db7f1.tar.bz2
re PR libgcj/6081 (libjava make install fails: Arg list too long)
Fix for PR libgcj/6081: * Makefile.in: Rebuilt. * Makefile.am (install-data-local): Use GNU make trick to avoid shell limit. From-SVN: r52370
Diffstat (limited to 'libjava/Makefile.am')
-rw-r--r--libjava/Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/libjava/Makefile.am b/libjava/Makefile.am
index 8e37339..3caec30 100644
--- a/libjava/Makefile.am
+++ b/libjava/Makefile.am
@@ -349,13 +349,17 @@ $(extra_headers):
## hand.
install-data-local:
$(PRE_INSTALL)
- @for f in $(nat_headers) $(extra_headers); do \
+## We use a GNU make trick here so that we don't go over the command
+## length limit of some shells.
+ @: $(shell echo Creating list of headers to install...) $(shell rm -f tmp-ilist || :) $(shell touch tmp-ilist) $(foreach hdr,$(nat_headers) $(extra_headers),$(shell echo $(hdr) >> tmp-ilist))
+ @cat tmp-ilist | while read f; do \
d="`echo $$f | sed -e 's,/[^/]*$$,,'`"; \
$(mkinstalldirs) $(DESTDIR)$(includedir)/$$d; \
if test -f $(srcdir)/$$f; then p=$(srcdir)/$$f; else p=$$f; fi; \
echo " $(INSTALL_DATA) $$p $(DESTDIR)$(includedir)/$$f"; \
$(INSTALL_DATA) $$p $(DESTDIR)$(includedir)/$$f; \
done
+ -@rm -f tmp-ilist
## FIXME: the obvious approach using lib_DATA doesn't work with
## automake 1.4.
$(mkinstalldirs) $(DESTDIR)$(secdir)