OSDN Git Service

(stmp-int-hdrs): Don't cd to srcdir before copying
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Sep 1996 21:10:02 +0000 (21:10 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Sep 1996 21:10:02 +0000 (21:10 +0000)
header files to objdir.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12849 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/Makefile.in

index 2aec568..9ee57f7 100644 (file)
@@ -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