From 700ba19c9c6ebb003db28af327628ff6340de438 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Sun, 21 Nov 1993 06:01:04 +0000 Subject: [PATCH] (stmp-fixproto): Never run fixproto twice. From-SVN: r6125 --- gcc/Makefile.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 115eba9a60e..09762abc119 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -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 # Remake the info files. -- 2.30.2