-
Notifications
You must be signed in to change notification settings - Fork 57
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
Port to the [dune] build system. #615
Conversation
apps/derive/elpi/dune
Outdated
(coq.theory | ||
(name elpi.apps.derive.elpi) | ||
(package coq-elpi) | ||
(theories elpi)) | ||
|
||
(rule | ||
(target dummy.v) | ||
(deps | ||
(glob_files *.elpi)) | ||
(action | ||
(with-stdout-to %{target} | ||
(echo "")))) | ||
|
||
(install | ||
(files | ||
(glob_files (*.elpi with_prefix coq/user-contrib/elpi/apps/derive/elpi/))) | ||
(section lib_root) | ||
(package coq-elpi)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This setup seems to work pretty well, and takes care of installing .elpi
files.
The only drawback is that we need to put these files under a different path (here files are found under elpi.apps.derive.elpi
, while they were under elpi.apps.derive
before). That's probably not a big deal?
(executable | ||
(name gen_doc) | ||
(libraries elpi_plugin)) | ||
|
||
(rule | ||
(targets | ||
coq-builtin.elpi | ||
coq-builtin-synterp.elpi | ||
elpi-builtin.elpi) | ||
(deps gen_doc.exe) | ||
(mode promote) | ||
(action (run ./gen_doc.exe))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this setup, the Elpi Document Builtins
is probably useless?
e47fb34
to
e8adef6
Compare
I'll rebase and try to fix the doc target, which is a blocker |
The [_CoqProject] is still useful for editors, it was partially generated using: ``` grep "^ (name" apps/**/dune | \ grep -v src | \ sed 's/apps\/\([a-zA-Z]*\)\/\([a-zA-Z]*\)\/dune: (name \([^)]*\))/-Q apps\/\1\/\2 elpi.apps.\1.\2\n-Q _build\/default\/apps\/\1\/\2 elpi.apps.\1.\2/' | sed 's/\.theories//' ``` Co-Authored-By: Rodolphe Lepigre <[email protected]>
This goes a bit further than #567, but there are still things to figure out:
coq-builtin[-synterp].elpi
files so that we can promote.