Draft
Conversation
0555c65 to
180bb4e
Compare
ocamldep generates the list of dependencies of a given OCaml target file. The new -build-tree option adds a facility to add a (separate) prefix to the targets and the dependencies in its make output. This allows make to write targets in an other location than just the current working directory. Dependencies of the target that are also build artifacts are also found in this location. This is useful for out-of-source builds and cross-compilation. ocamldep outputs a trailing directory separator if the given string doesn't contain one, and respects -slash and -no-slash options. No other processing is made on the string. It is for instance possible to give a Makefile variable instead of a path.
If ocamldep is invoked without `-all`, then the output doesn't refer to source files and there is no need for `-source-tree`. If `-all` is used, though, then rules output by ocamldep will refer to source files and, currently, they will contain the paths to the source files relative to where ocamldep is run from. Defining `-source-tree` allows to run the build from a different directory than of which ocamldep was run.
180bb4e to
247c093
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previous submission at
https://github.com/ocaml/ocaml/pull/12239.