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: provide a way to run some rules in source directory #5285

Closed
vicuna opened this issue Jun 8, 2011 · 2 comments
Closed

ocamlbuild: provide a way to run some rules in source directory #5285

vicuna opened this issue Jun 8, 2011 · 2 comments

Comments

@vicuna
Copy link

vicuna commented Jun 8, 2011

Original bug ID: 5285
Reporter: @ygrek
Status: resolved (set by @damiendoligez on 2017-03-03T14:59:14Z)
Resolution: suspended
Priority: normal
Severity: feature
Version: 3.11.2
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Monitored by: mehdi @glondu

Bug description

Sometimes it is desirable to keep generated files (e.g. some source-to-source transformation or code generation by third-party tools) in VCS and hence in source directory, not in _build. But all custom myocamlbuild rules get executed in _build and the result is also stored there. Moreover, copying result to the source directory prevents ocamlbuild from rebuilding it on the next run.
Currently I am using extra rules in Makefile to generate such files.
I wish I could specify these rules in myocamlbuild (maybe some per-rule flag to run it in source directory (but that would probably break parallel building because of process-wide chdir effect). Any ideas?

@vicuna
Copy link
Author

vicuna commented Feb 20, 2017

Comment author: @xavierleroy

Un-assigning from xclerc

@vicuna
Copy link
Author

vicuna commented Mar 3, 2017

Comment author: @damiendoligez

ocamlbuild is now a separate project that lives on GitHub.
PR transferred to ocaml/ocamlbuild#216

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