From 935df5be8d2b487e17ab1609083b264477c19a4d Mon Sep 17 00:00:00 2001 From: lmamane Date: Mon, 16 Jul 2007 08:06:45 +0000 Subject: 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 --- Makefile.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.build b/Makefile.build index e9489b0bca..bac86b6cdd 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 -- cgit v1.2.3