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

Remove config files generation from Makefiles #234

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Julow
Copy link

@Julow Julow commented Apr 26, 2024

This generates the config files and ocsigen_config_static.ml using an OCaml script called from Dune rules. This allows to remove several Makefiles and allows building more of the project using Dune.

src/files/ocsigenserver.conf/options.ml is generated from the configure script but is also included in the source tree with default values that allow to build a bigger part of the project without running the configure script.

This makes the config files generation compatible with a dune rule.
This will allow to generate this file from a different build system.
ocsigen_config_static.ml is generated from a dune rule and automatically
registered into the library.

ocsigenserver.conf.sample and local/etc/ocsigenserver.conf are generated
and promoted into the worktree with dune rules.

Dependencies are computed from Dune. For example, changing the generator
script or changing options.ml with ./configure will trigger a rebuild.
Only src/server/Makefile remains.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant