Don't refix include files when xgcc is rebuilt
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 16 Sep 1993 16:07:00 +0000 (16:07 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 16 Sep 1993 16:07:00 +0000 (16:07 +0000)
From-SVN: r5341

gcc/Makefile.in

index 46d777b3a1ace9be5d271b0535d2a146469c7f46..9369491ff97b55fcd1b85bba30c16231e7d7d8e9 100644 (file)
@@ -1390,8 +1390,19 @@ stmp-headers: stmp-int-hdrs gfloat.h
        chmod a+r include/float.h
        touch stmp-headers
 
+# Running fixincludes requires making sure that xgcc and cpp have been
+# compiled (they are used to get the value of __SIZE_TYPE__).
+# But recompiling xgcc should not force the the header files to be
+# fixed again.  If you want to do that, delete stmp-fixinc.
+fixinc.ready: xgcc cpp
+       -if [ -f fixinc.ready ] ; then \
+               true; \
+       else \
+               touch fixinc.ready; \
+       fi
+
 # Build fixed copies of system files.
-stmp-fixinc: $(srcdir)/$(FIXINCLUDES) gsyslimits.h xgcc cpp
+stmp-fixinc: $(srcdir)/$(FIXINCLUDES) gsyslimits.h fixinc.ready
        rm -rf include
        mkdir include
        if [ x$(FIXINCLUDES) != xMakefile.in ]; \
@@ -1542,7 +1553,7 @@ clean: mostlyclean
        -rm -f libgcc.a libgcc1.a libgcc2.a libgcc2.ready libgcc1.null
        -rm -f *.dvi
 # Delete the include directory.
-       -rm -rf stmp-* include objc-headers
+       -rm -rf stmp-* fixinc.ready include objc-headers
 
 # Delete all files that users would normally create
 # while building and installing GCC.