aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1996-09-26 14:10:02 -0700
committerJim Wilson <wilson@gcc.gnu.org>1996-09-26 14:10:02 -0700
commitae678a132605a4c2d8eebc3b5028bc4666f1cff0 (patch)
treeac9e583a9fa203824fd1914cc8a00b71c2c42074
parent7d9f07f4f9a48ad6be091914118b3ce502a116ae (diff)
downloadgcc-ae678a132605a4c2d8eebc3b5028bc4666f1cff0.zip
gcc-ae678a132605a4c2d8eebc3b5028bc4666f1cff0.tar.gz
gcc-ae678a132605a4c2d8eebc3b5028bc4666f1cff0.tar.bz2
(stmp-int-hdrs): Don't cd to srcdir before copying
header files to objdir. From-SVN: r12849
-rw-r--r--gcc/Makefile.in8
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 2aec568..9ee57f7 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -1809,14 +1809,12 @@ stmp-int-hdrs: stmp-fixinc $(USER_H) xlimits.h objc-headers
# The sed command gets just the last file name component;
# this is necessary because VPATH could add a dirname.
# Using basename would be simpler, but some systems don't have it.
- objdir=`pwd`; \
- cd $(srcdir); \
for file in .. $(USER_H); do \
if [ X$$file != X.. ]; then \
realfile=`echo $$file | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
- rm -f $$objdir/include/$$realfile; \
- cp $$file $$objdir/include; \
- chmod a+r $$objdir/include/$$realfile; \
+ rm -f include/$$realfile; \
+ cp $$file include; \
+ chmod a+r include/$$realfile; \
fi; \
done
rm -f include/limits.h