* Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET)
authorDaniel Jacobowitz <dan@debian.org>
Thu, 20 May 2004 20:17:04 +0000 (20:17 +0000)
committerDaniel Jacobowitz <drow@gcc.gnu.org>
Thu, 20 May 2004 20:17:04 +0000 (20:17 +0000)
(NM_FOR_TARGET): Use := and $(shell).
(mainversion): Remove unused variable.

From-SVN: r82068

gcc/ChangeLog
gcc/Makefile.in

index e2f342598612c37749c40f05c58264151c04686d..3d81b8a4816915fb62efbd72db217aea52eb5cd7 100644 (file)
@@ -1,3 +1,9 @@
+2004-05-20  Daniel Jacobowitz  <dan@debian.org>
+
+       * Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET)
+       (NM_FOR_TARGET): Use := and $(shell).
+       (mainversion): Remove unused variable.
+
 2004-05-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        * reorg.c (delete_from_delay_slot): If we have a barrier after the
index 35f8bcbccb1b8104f3e02d4dd37495db12bf798f..a1789951686891dc855a5a1b3f16eb655ce4f10e 100644 (file)
@@ -316,7 +316,7 @@ GCC_CFLAGS=$(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(LOOSE_WARN) -Wold-style-
 # Programs which produce files for the target machine
 # ---------------------------------------------------
 
-AR_FOR_TARGET = ` \
+AR_FOR_TARGET := $(shell \
   if [ -f $(objdir)/../binutils/ar ] ; then \
     echo $(objdir)/../binutils/ar ; \
   else \
@@ -325,11 +325,11 @@ AR_FOR_TARGET = ` \
     else \
        t='$(program_transform_name)'; echo ar | sed -e $$t ; \
     fi; \
-  fi`
+  fi)
 AR_FLAGS_FOR_TARGET =
 AR_CREATE_FOR_TARGET = $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) rc
 AR_EXTRACT_FOR_TARGET = $(AR_FOR_TARGET) $(AR_FLAGS_FOR_TARGET) x
-RANLIB_FOR_TARGET = ` \
+RANLIB_FOR_TARGET := $(shell \
   if [ -f $(objdir)/../binutils/ranlib ] ; then \
     echo $(objdir)/../binutils/ranlib ; \
   else \
@@ -338,8 +338,8 @@ RANLIB_FOR_TARGET = ` \
     else \
        t='$(program_transform_name)'; echo ranlib | sed -e $$t ; \
     fi; \
-  fi`
-NM_FOR_TARGET = ` \
+  fi)
+NM_FOR_TARGET := $(shell \
   if [ -f ./nm ] ; then \
     echo ./nm ; \
   elif [ -f $(objdir)/../binutils/nm-new ] ; then \
@@ -350,7 +350,7 @@ NM_FOR_TARGET = ` \
     else \
        t='$(program_transform_name)'; echo nm | sed -e $$t ; \
     fi; \
-  fi`
+  fi)
 
 # --------
 # UNSORTED
@@ -416,7 +416,6 @@ host_hook_obj=@out_host_hook_obj@
 gcc_version=@gcc_version@
 gcc_version_trigger=@gcc_version_trigger@
 version=$(gcc_version)
-mainversion=`grep version_string $(srcdir)/version.c | sed -e 's/.*\"\([0-9]*\.[0-9]*\).*/\1/'`
 
 # ------------------------
 # Installation directories