(stmp-fixproto): Never run fixproto twice.
authorRichard Stallman <rms@gnu.org>
Sun, 21 Nov 1993 06:01:04 +0000 (06:01 +0000)
committerRichard Stallman <rms@gnu.org>
Sun, 21 Nov 1993 06:01:04 +0000 (06:01 +0000)
From-SVN: r6125

gcc/Makefile.in

index 115eba9a60efc87a2b98090e5fe6e2493700bd20..09762abc1190d5b6eddf5ce8086f85dd1c850b8d 100644 (file)
@@ -1614,10 +1614,16 @@ fixhdr.ready: fix-header
        fi
 
 # stmp-headers is to make sure fixincludes has already finished.
+# The if statement is so that we don't run fixproto a second time
+# if it has already been run on the files in `include'.
 stmp-fixproto: fixhdr.ready fixproto stmp-headers
        @echo "Various warnings and error messages from fixproto are normal"
-       CPP="$(GCC_FOR_TARGET) -E"; export CPP; \
-         ${srcdir}/fixproto include include $(SYSTEM_HEADER_DIR)
+       if [ -f include/fixed ] ; then true; \
+       else \
+         CPP="$(GCC_FOR_TARGET) -E"; export CPP; \
+           ${srcdir}/fixproto include include $(SYSTEM_HEADER_DIR); \
+         touch include/fixed; \
+       fi
        touch stmp-fixproto
 \f
 # Remake the info files.