mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 04:00:07 +08:00
Automagically reconfigure target directories whenever the multilib options change
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
Thu Jul 11 10:09:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
|
||||||
|
|
||||||
|
* Makefile.in (CONFIGURE_TARGET_MODULES): Determine if the multlib
|
||||||
|
options have changed since the last time the subdirectory was
|
||||||
|
configured, and if it has, reconfigure.
|
||||||
|
(CLEAN_TARGET_MODULES): Delete multilib.out and tmpmulti.out, which
|
||||||
|
CONFIGURE_TARGET_MODULES uses to remember the old multilib options.
|
||||||
|
|
||||||
Wed Jul 10 18:56:59 1996 Doug Evans <dje@canuck.cygnus.com>
|
Wed Jul 10 18:56:59 1996 Doug Evans <dje@canuck.cygnus.com>
|
||||||
|
|
||||||
* Makefile.in (ALL_MODULES,CROSS_CHECK_MODULES,INSTALL_MODULES,
|
* Makefile.in (ALL_MODULES,CROSS_CHECK_MODULES,INSTALL_MODULES,
|
||||||
|
13
Makefile.in
13
Makefile.in
@ -857,6 +857,7 @@ $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
|
|||||||
.PHONY: $(CLEAN_TARGET_MODULES)
|
.PHONY: $(CLEAN_TARGET_MODULES)
|
||||||
$(CLEAN_TARGET_MODULES):
|
$(CLEAN_TARGET_MODULES):
|
||||||
@dir=`echo $@ | sed -e 's/clean-target-//'`; \
|
@dir=`echo $@ | sed -e 's/clean-target-//'`; \
|
||||||
|
rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
|
||||||
if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
|
if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
|
||||||
r=`pwd`; export r; \
|
r=`pwd`; export r; \
|
||||||
srcroot=`cd $(srcdir); pwd`; export srcroot; \
|
srcroot=`cd $(srcdir); pwd`; export srcroot; \
|
||||||
@ -1012,6 +1013,18 @@ $(INSTALL_MODULES): install-dirs
|
|||||||
.PHONY: $(CONFIGURE_TARGET_MODULES)
|
.PHONY: $(CONFIGURE_TARGET_MODULES)
|
||||||
$(CONFIGURE_TARGET_MODULES):
|
$(CONFIGURE_TARGET_MODULES):
|
||||||
@dir=`echo $@ | sed -e 's/configure-target-//'`; \
|
@dir=`echo $@ | sed -e 's/configure-target-//'`; \
|
||||||
|
$(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
|
||||||
|
if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \
|
||||||
|
if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \
|
||||||
|
rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
|
||||||
|
else \
|
||||||
|
echo "Multilibs changed for $${dir}, reconfiguring"; \
|
||||||
|
rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \
|
||||||
|
mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
|
||||||
|
fi; \
|
||||||
|
else \
|
||||||
|
mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
|
||||||
|
fi; \
|
||||||
if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
|
if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
|
||||||
true; \
|
true; \
|
||||||
elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
|
elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
|
||||||
|
Reference in New Issue
Block a user