aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar lmamane <lmamane@85f007b7-540e-0410-9357-904b9bb8a0f7>2007-07-16 08:06:45 +0000
committerGravatar lmamane <lmamane@85f007b7-540e-0410-9357-904b9bb8a0f7>2007-07-16 08:06:45 +0000
commit935df5be8d2b487e17ab1609083b264477c19a4d (patch)
tree43ce946ea864dac3c673b8df621c5647e11b5fdb
parent6690191053baac1b43a14b012833336907485635 (diff)
Makefile: work around gcc bug: lhs of make rule created by -MM does not include path
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@10006 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--Makefile.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.build b/Makefile.build
index e9489b0bc..bac86b6cd 100644
--- a/Makefile.build
+++ b/Makefile.build
@@ -859,7 +859,7 @@ endif
# to actually depend on the header files.
%.c.d: %.c
$(SHOW)'CCDEP $<'
- $(HIDE)$(CC) -MM -MG $(CFLAGS) $(CINCLUDES) $< | sed 's/\(.*\)\.o[[:space:]]*:/\1.o \1.c.d:/' > $@
+ $(HIDE)$(CC) -MM -MG -MQ "$@" -MQ "$(<:.c=.o)" $(CFLAGS) $(CINCLUDES) $< > $@
.PRECIOUS: %.ml %.mli %.d %.ml4.d kernel/copcodes.ml