OSDN Git Service

2009-05-07 Rafael Avila de Espindola <espindola@google.com>
authorespindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 May 2009 15:49:19 +0000 (15:49 +0000)
committerespindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 May 2009 15:49:19 +0000 (15:49 +0000)
* Makefile.in (install-plugin): Simplify a bit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147244 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/Makefile.in

index f318d33..2ae9df4 100644 (file)
@@ -1,3 +1,7 @@
+2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
+
+       * Makefile.in (install-plugin): Simplify a bit.
+
 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
 
        * Makefile.in (OBJS-common): Add regcprop.o.
index 556bfe3..4cd07f7 100644 (file)
@@ -4017,6 +4017,7 @@ install-plugin: installdirs
 # other files are flattened to a single directory.
        $(mkinstalldirs) $(DESTDIR)$(plugin_includedir)
        headers=`echo $(PLUGIN_HEADERS) | tr ' ' '\n' | sort -u`; \
+       srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`; \
        for file in $$headers; do \
          if [ -f $$file ] ; then \
            path=$$file; \
@@ -4025,8 +4026,7 @@ install-plugin: installdirs
          else continue; \
          fi; \
          case $$path in \
-         "$(srcdir)"*/config/* | "$(srcdir)"/*.def ) \
-           srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`; \
+         "$(srcdir)"/config/* | "$(srcdir)"/*.def ) \
            base=`echo "$$path" | sed -e "s|$$srcdirstrip/||"`;; \
          *) base=`basename $$path` ;; \
          esac; \