+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
# 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 \
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 \
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 \
else \
t='$(program_transform_name)'; echo nm | sed -e $$t ; \
fi; \
- fi`
+ fi)
# --------
# UNSORTED
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