aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMichael Chastain <mec.gnu@mindspring.com>2004-08-05 19:29:09 +0000
committerMichael Chastain <chastain@gcc.gnu.org>2004-08-05 19:29:09 +0000
commitc34f5b333dc7f357f14709c6a7d5d941ad84be5c (patch)
treec72d020bfbc59a2c93b773f151e7f1ff418a5aba /gcc
parent21149a790b13dec2d4a9e5d0848af02d79c6617f (diff)
downloadgcc-c34f5b333dc7f357f14709c6a7d5d941ad84be5c.zip
gcc-c34f5b333dc7f357f14709c6a7d5d941ad84be5c.tar.gz
gcc-c34f5b333dc7f357f14709c6a7d5d941ad84be5c.tar.bz2
re PR bootstrap/14893 (3.4.0-20040406, 'make install' fails on doc/gcjh.1)
2004-08-05 Michael Chastain <mec.gnu@mindspring.com> PR bootstrap/14893 * Make-lang.in (java.install-man): Install from either build tree or source tree, whichever has the file first. (See the PR for more information and the approval from Alexandre Oliva. This fix has been in gcc-3_4-branch for about four months). From-SVN: r85610
Diffstat (limited to 'gcc')
-rw-r--r--gcc/java/ChangeLog6
-rw-r--r--gcc/java/Make-lang.in8
2 files changed, 13 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index e2a7684..23fe7b2 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,9 @@
+2004-08-05 Michael Chastain <mec.gnu@mindspring.com>
+
+ PR bootstrap/14893
+ * Make-lang.in (java.install-man): Install from either build
+ tree or source tree, whichever has the file first.
+
2004-08-05 Nathan Sidwell <nathan@codesourcery.com>
* jcf-parse.c (get_constant): Adjust force_fit_type call.
diff --git a/gcc/java/Make-lang.in b/gcc/java/Make-lang.in
index 2944383..afc22d8 100644
--- a/gcc/java/Make-lang.in
+++ b/gcc/java/Make-lang.in
@@ -407,7 +407,13 @@ java.install-man: installdirs \
tool_transformed_name=`echo $$tool|sed '$(program_transform_name)'`; \
man_name=$(DESTDIR)$(man1dir)/$${tool_transformed_name}$(man1ext); \
rm -f $$man_name ; \
- $(INSTALL_DATA) doc/$${tool}.1 $$man_name; \
+ for source_name in doc/$${tool}.1 $(srcdir)/doc/$${tool}.1 ; do \
+ if test -f $$source_name; then \
+ $(INSTALL_DATA) $$source_name $$man_name; \
+ break; \
+ else : ; \
+ fi; \
+ done ; \
chmod a-x $$man_name ; \
done