(stmp-int-hdrs): Don't cd to srcdir before copying
authorJim Wilson <wilson@gcc.gnu.org>
Thu, 26 Sep 1996 21:10:02 +0000 (14:10 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 26 Sep 1996 21:10:02 +0000 (14:10 -0700)
header files to objdir.

From-SVN: r12849

gcc/Makefile.in

index 2aec568d93a4bc727b57e208169b0a6fad0b8864..9ee57f7ed98445e3a3645f6743839aa7d3b9cc74 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