Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocamlbuild -n would be nice #4500

Closed
vicuna opened this issue Feb 6, 2008 · 3 comments
Closed

ocamlbuild -n would be nice #4500

vicuna opened this issue Feb 6, 2008 · 3 comments

Comments

@vicuna
Copy link

vicuna commented Feb 6, 2008

Original bug ID: 4500
Reporter: rbornat
Assigned to: @xclerc
Status: closed (set by @xavierleroy on 2015-12-11T18:07:14Z)
Resolution: won't fix
Priority: normal
Severity: feature
Version: 3.10.0
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues

Bug description

I have in the past used make -n systematically, to construct a command file for a system that doesn't have make. It would be nice to be able to use ocamlbuild (which I use now in preference to make) for the same purpose.

@vicuna
Copy link
Author

vicuna commented Feb 6, 2008

Comment author: ertai

ocamlbuild -n is not really useful since ocamlbuild produce a _log file that happens to be a shell script.

So "sh ./_build/_log" should works smoothly.

However this usage is not guaranteed to works in every cases (as in make) if you have done some configurations, in this case commands can be machine specific.

Second point some commands could be performed by caml functions and so perhaps not completely equivalent (if present) with those in the _log file.

@vicuna
Copy link
Author

vicuna commented Feb 6, 2008

Comment author: rbornat

But the _log file requires me to actually do all the compilations. It would be nice to generate the _log without actually doing the work.

@vicuna
Copy link
Author

vicuna commented Feb 19, 2008

Comment author: ertai

That's not really doable in the context of ocamlbuild, since next commands are determined by the output of some previous commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant