[PATCH] install-exec-hook test?

Alexandre Petit-Bianco apbianco@cygnus.com
Tue Oct 31 20:15:00 GMT 2000


Do we need something like this? I did a `make clean && make && make
install' in <libgcj-builddir>/<target>/libjava and `make install'
failed because the links already were in place.

./A

2000-10-31  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* Makefile.am (install-exec-hook:): Test before making link. 
	* Makefile.in: Rebuilt.

Index: Makefile.am
===================================================================
RCS file: /cvs/java/libgcj/libjava/Makefile.am,v
retrieving revision 1.97
diff -u -p -r1.97 Makefile.am
--- Makefile.am 2000/10/27 10:33:46     1.97
+++ Makefile.am 2000/11/01 04:02:32
@@ -154,7 +154,9 @@ install-exec-hook:
        if test -f libgcjx.la; then \
          for f in libgcjx*; do \
            t=`echo $$f | sed -e 's/libgcjx/gnu-awt-xlib/'`; \
-           ln -s $$f $$t; \
+           if test ! -f $$t; then \
+             ln -s $$f $$t; \
+           fi; \
          done; \
        fi
 


More information about the Java-patches mailing list