COQ(1) | General Commands Manual | COQ(1) |
coqdep - Compute inter-module dependencies for Coq programs
coqdep [ -I directory ] [ -coqlib directory ] [ -i ] [ -slash ] filename ... directory ...
coqdep computes inter-module dependencies for Coq programs, and prints the dependencies on the standard output in a format readable by make. When a directory is given as argument, it is recursively looked at.
Dependencies of Coq modules are computed by looking at Require commands (Require, Require Export, Require Import, possibly restricted by a From clause), Declare ML Module commands, Add LoadPath commands and Load commands. Dependencies relative to modules from the Coq library are not printed except if -boot is given.
ocamlc(1), coqc(1), make(1).
Lexers (for Coq and OCaml) correctly handle nested comments and strings.
The treatment of symbolic links is primitive.
If two files have the same name, in two different directories, a warning is printed on standard error.
There is no way to limit the scope of the recursive search for directories.
Consider the files (in the same directory):
a.mllib X.v Y.v and Z.v
where
To get the dependencies of the Coq files:
X.vo X.glob X.v.beautified X.required_vo: X.v X.vio: X.v Y.vo Y.glob Y.v.beautified Y.required_vo: Y.v X.vo Y.vio: Y.v X.vio Z.vo Z.glob Z.v.beautified Z.required_vo: Z.v X.vo ./a.cma ./a.cmxs Z.vio: Z.v X.vio ./a.cma ./a.cmxs
Please report any bug to https://github.com/coq/coq/issues