aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1998-03-31 23:00:57 +0000
committerIan Lance Taylor <ian@airs.com>1998-03-31 23:00:57 +0000
commitcfa9f8450c82b71a4e7b8acd7c064872706327eb (patch)
tree00d4d586aeabb0191d5d41e844d48acdeec0f718
parentba91002682bdb1fe9615ccc6d36a952f83e0eef2 (diff)
downloadbinutils-cfa9f8450c82b71a4e7b8acd7c064872706327eb.zip
binutils-cfa9f8450c82b71a4e7b8acd7c064872706327eb.tar.gz
binutils-cfa9f8450c82b71a4e7b8acd7c064872706327eb.tar.bz2
tweak
-rw-r--r--gas/Makefile.am3
-rw-r--r--gas/Makefile.in3
2 files changed, 4 insertions, 2 deletions
diff --git a/gas/Makefile.am b/gas/Makefile.am
index 6d007e7..695ae1d 100644
--- a/gas/Makefile.am
+++ b/gas/Makefile.am
@@ -633,7 +633,8 @@ DEP_FILE_DEPS = $(CFILES) $(HFILES) $(TARGET_CPU_CFILES) \
.dep: dep.sed $(DEP_FILE_DEPS) .tcdep .objdep .dep2
rm -f .dep1
- $(MAKE) DEP=$(DEP) .dep1
+ srcdir=`cd $(srcdir); pwd`; \
+ $(MAKE) DEP=$(DEP) srcdir=$${srcdir} VPATH=$${srcdir} .dep1
rm -rf .depdir
sed -f dep.sed < .dep1 > .depa
sed -f dep.sed < .tcdep >> .depa
diff --git a/gas/Makefile.in b/gas/Makefile.in
index be591fe..b615a82 100644
--- a/gas/Makefile.in
+++ b/gas/Makefile.in
@@ -1787,7 +1787,8 @@ de-stage3:
.dep: dep.sed $(DEP_FILE_DEPS) .tcdep .objdep .dep2
rm -f .dep1
- $(MAKE) DEP=$(DEP) .dep1
+ srcdir=`cd $(srcdir); pwd`; \
+ $(MAKE) DEP=$(DEP) srcdir=$${srcdir} VPATH=$${srcdir} .dep1
rm -rf .depdir
sed -f dep.sed < .dep1 > .depa
sed -f dep.sed < .tcdep >> .depa