diff options
| -rw-r--r-- | Makefile.build | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.build b/Makefile.build index 7f79c60c97..fdd65f9f46 100644 --- a/Makefile.build +++ b/Makefile.build @@ -853,9 +853,13 @@ endif $(HIDE)$(COQDEP) -coqlib . -R theories Coq -R contrib Coq $(COQINCLUDES) \ "$<" | sed 's/\(.*\)\.vo[[:space:]]*:/\1.vo \1.glob:/' > "$@" +# The use of the -MG flag here presupposes that all generated C header +# (.h) files do not themselves #include other (non-system) header files. +# It this changes in future, then the calculation of the dependencies needs +# to actually depend on the header files. %.c.d: %.c $(SHOW)'CCDEP $<' - $(HIDE)$(CC) -MM $(CFLAGS) $(CINCLUDES) $< > $@ + $(HIDE)$(CC) -MM -MG $(CFLAGS) $(CINCLUDES) $< > $@ .PRECIOUS: %.ml %.mli %.d %.ml4.d kernel/copcodes.ml |
