diff options
| -rw-r--r-- | Makefile.build | 8 | ||||
| -rw-r--r-- | Makefile.common | 3 |
2 files changed, 4 insertions, 7 deletions
diff --git a/Makefile.build b/Makefile.build index 38cdd53be6..7ef5f5a5cd 100644 --- a/Makefile.build +++ b/Makefile.build @@ -841,13 +841,9 @@ 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 +%.c.d: %.c | $(GENHFILES) $(SHOW)'CCDEP $<' - $(HIDE)$(CC) -MM -MG -MQ "$@" -MQ "$(<:.c=.o)" $(CFLAGS) $(CINCLUDES) $< > $@ + $(HIDE)$(CC) -MM -MQ "$@" -MQ "$(<:.c=.o)" $(CFLAGS) $(CINCLUDES) $< > $@ .SECONDARY: $(GENFILES) diff --git a/Makefile.common b/Makefile.common index 3bf6ae5028..41603fef6b 100644 --- a/Makefile.common +++ b/Makefile.common @@ -432,7 +432,8 @@ LEXFILES := $(shell find . '(' -name '*.mll' ')' -printf '%P\n') GENMLFILES:=$(LEXFILES:.mll=.ml) $(YACCFILES:.mly=.ml) \ scripts/tolink.ml kernel/copcodes.ml GENMLIFILES:=$(YACCFILES:.mly=.mli) -GENFILES:=$(GENMLFILES) $(GENMLIFILES) kernel/byterun/coq_jumptbl.h +GENHFILES:=kernel/byterun/coq_jumptbl.h +GENFILES:=$(GENMLFILES) $(GENMLIFILES) $(GENHFILES) MLFILES := $(shell find . '(' -name '*.ml' ')' -printf '%P\n' | \ while read f; do if ! [ -e "$${f}4" ]; then echo "$$f"; fi; done) \ $(GENMLFILES) |
