aboutsummaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authorlmamane2007-07-16 11:19:29 +0000
committerlmamane2007-07-16 11:19:29 +0000
commitdc60d228b1bcb3c88f797bb0d97d5828da8605fd (patch)
tree6bb3b88ea857d92130519196612ec253fee48562 /Makefile.common
parenta964a7da07af0921ce173c4ef2f89fc80609366c (diff)
Makefile: -MG doesn't (and can't) do what is necessary
The -MG option causes gcc to add any non-found .h file verbatim in the dependencies. This naturally doesn't include the path to it (because the path is unknown) and thus make doesn't know how to build it; it knows how to build kernel/byterun/coq_jumptbl.h, not "coq_jumptbl.h". --This line, and those below, will be ignored-- M Makefile.common M Makefile.build git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@10011 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common3
1 files changed, 2 insertions, 1 deletions
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)