diff options
| author | letouzey | 2008-03-14 17:50:09 +0000 |
|---|---|---|
| committer | letouzey | 2008-03-14 17:50:09 +0000 |
| commit | dfb001fde305a4d3b4e418da39b4075cf55a7f57 (patch) | |
| tree | a7b52b8f70a33b432559b22d596e005d9b8d0926 /Makefile.build | |
| parent | 4205d7880c264e56b0fc93ae7701cce956838197 (diff) | |
New option -glob for coqdep, in order to avoid nasty tricks with sed in Makefile
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@10668 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'Makefile.build')
| -rw-r--r-- | Makefile.build | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/Makefile.build b/Makefile.build index 53acb99bf2..0a336b8744 100644 --- a/Makefile.build +++ b/Makefile.build @@ -850,24 +850,9 @@ endif $(HIDE)echo "let keep_ocamldep_happy Do_not_compile_me = assert false" > $@ \ || ( RV=$$?; rm -f "$@"; exit $${RV} ) -# Another nasty hack. The making of .v.d files is split in two so that -# make notices if coqdep fails (returns an error exit code). If we -# just make %.v.d directly from %.v with -# $(HIDE)$(COQDEP) -coqlib . -R theories Coq -R contrib Coq $(COQINCLUDES) \ -# "$<" | sed 's/\(.*\)\.vo[[:space:]]*:/\1.vo \1.glob:/' > "$@" -# then the exit code of the whole pipe is the exit code of ... sed, -# that is always 0. And make doesn't notice that coqdep failed and -# merrily accepts that the .v.d file is just empty. -# We could also make a complex shell script with ERR trapping and all -# that, but more complex and fragile than this. -# make will delete .raw files because they are intermediate. -%.v.d.raw: $(D_DEPEND_BEFORE_SRC) %.v $(D_DEPEND_AFTER_SRC) $(COQDEP) +%.v.d: $(D_DEPEND_BEFORE_SRC) %.v $(D_DEPEND_AFTER_SRC) $(COQDEP) $(SHOW)'COQDEP $<' - $(HIDE)$(COQDEP) -slash -coqlib . -R theories Coq -R contrib Coq $(COQINCLUDES) "$<" > "$@" \ - || ( RV=$$?; rm -f "$@"; exit $${RV} ) - -%.v.d: %.v.d.raw - $(HIDE)sed 's/\(.*\)\.vo[[:space:]]*:/\1.vo \1.glob:/' < "$<" > "$@" \ + $(HIDE)$(COQDEP) -glob -slash -coqlib . -R theories Coq -R contrib Coq $(COQINCLUDES) "$<" > "$@" \ || ( RV=$$?; rm -f "$@"; exit $${RV} ) %.c.d: $(D_DEPEND_BEFORE_SRC) %.c $(D_DEPEND_AFTER_SRC) $(GENHFILES) |
