aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/Makefile.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 115eba9..09762ab 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.