aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2000-02-01 22:30:35 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2000-02-01 22:30:35 +0000
commitf232183759f43faadb2a392c6e03aaacd2172371 (patch)
tree0685386b132b90bfb7285072f64cd5b9275b0cb8 /gcc
parentdafb9c663743c5c2fb309c65fe6e579d9af74256 (diff)
downloadgcc-f232183759f43faadb2a392c6e03aaacd2172371.zip
gcc-f232183759f43faadb2a392c6e03aaacd2172371.tar.gz
gcc-f232183759f43faadb2a392c6e03aaacd2172371.tar.bz2
Makefile.in (specs.ready): New target.
* Makefile.in (specs.ready): New target. (fixinc.sh): Depend on `specs.ready' instead of `specs'. From-SVN: r31743
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/Makefile.in12
2 files changed, 16 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c78df4e..5027333 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+ * Makefile.in (specs.ready): New target.
+ (fixinc.sh): Depend on `specs.ready' instead of `specs'.
+
+2000-02-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
* fixinc.irix: Use unique filenames for writing into /tmp,
* fixinc.ptx: Likewise.
* fixinc.sco: Likewise.
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 2a61aa8..beafcd5 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -2160,11 +2160,21 @@ stmp-int-hdrs: stmp-fixinc $(USER_H) xlimits.h
stmp-headers:
touch $@
+# fixinc.sh depends on this, not on specs directly.
+# The idea is to make sure specs gets built, but not rerun fixinc.sh
+# after each stage just because specs' mtime has changed.
+specs.ready: specs
+ -if [ -f specs.ready ] ; then \
+ true; \
+ else \
+ touch specs.ready; \
+ fi
+
FIXINCSRCDIR=$(srcdir)/fixinc
fixinc.sh: $(FIXINCSRCDIR)/mkfixinc.sh $(FIXINCSRCDIR)/fixincl.c \
$(FIXINCSRCDIR)/procopen.c $(FIXINCSRCDIR)/gnu-regex.c \
$(FIXINCSRCDIR)/server.c $(FIXINCSRCDIR)/gnu-regex.h \
- $(FIXINCSRCDIR)/server.h $(FIXINCSRCDIR)/inclhack.def specs
+ $(FIXINCSRCDIR)/server.h $(FIXINCSRCDIR)/inclhack.def specs.ready
MAKE="$(MAKE)"; srcdir=`cd $(srcdir)/fixinc; pwd` ; \
export MAKE srcdir ; \
cd ./fixinc; $(SHELL) $${srcdir}/mkfixinc.sh $(target)