1
.TH COQ 1 "28 March 1995" "Coq tools"
4
coqdep \- Compute inter-module dependencies for Coq and Caml programs
15
.BI \-coqlib \ directory
35
compute inter-module dependencies for Coq and Caml programs,
36
and prints the dependencies on the standard output in a format
38
When a directory is given as argument, it is recursively looked at.
40
Dependencies of Coq modules are computed by looking at
42
commands (Require, Require Export, Require Import, Require Implementation),
48
commands. Dependencies relative to modules from the Coq library are not
51
Dependencies of Caml modules are computed by looking at
53
directives and the dot notation
60
Prints the dependencies of Caml modules.
61
(On Caml modules, the behaviour is exactly the same as ocamldep).
64
Prints a warning if a Coq command
68
is incorrect. (For instance, you wrote `Declare ML Module "A".',
69
but the module A contains #open "B"). The correct command is printed
70
(see option \-D). The warning is printed on standard error.
73
Prints also the dependencies for .vi files (Coq specification modules).
76
This commands looks for every command
80
of each Coq file given as argument and complete (if needed)
81
the list of Caml modules. The new command is printed on
82
the standard output. No dependency is computed with this option.
85
Prints paths using a slash instead of the OS specific separator. This
86
option is useful when developping under Cygwin.
89
The files .v .ml .mli of the directory
91
are taken into account during the calculus of dependencies,
92
but their own dependencies are not printed.
94
.BI \-coqlib \ directory
95
Indicates where is the Coq library. The default value has been
96
determined at installation time, and therefore this option should not
97
be used under normal circumstances.
109
Lexers (for Coq and Caml) correctly handle nested comments
112
The treatment of symbolic links is primitive.
114
If two files have the same name, in two different directories,
115
a warning is printed on standard error.
117
There is no way to limit the scope of the recursive search for
123
Consider the files (in the same directory):
125
A.ml B.ml C.ml D.ml X.v Y.v and Z.v
130
D.ml contains the commands `open A', `open B' and `type t = C.t' ;
133
Y.v contains the command `Require X' ;
136
Z.v contains the commands `Require X' and `Declare ML Module "D"'.
138
To get the dependencies of the Coq files:
141
example% coqdep \-I . *.v
145
.B Z.vo: Z.v ./X.vo ./D.cmo
156
example% coqdep \-w \-I . *.v
160
.B Z.vo: Z.v ./X.vo ./D.cmo
163
### Warning : In file Z.v, the ML modules declaration should be
164
### Declare ML Module "A" "B" "C" "D".
170
To get only the Caml dependencies:
173
example% coqdep \-c \-I . *.ml
177
.B D.cmo: D.ml ./A.cmo ./B.cmo ./C.cmo
178
.B D.cmx: D.ml ./A.cmx ./B.cmx ./C.cmx
192
Please report any bug to
193
.B coq\-bugs@pauillac.inria.fr