Hey!
I have my project setup with dune and use it to generate my .opam file.
Now I’d like to do my first release of my package, and so I’m trying to figure out how to setup dune for building a release with manpages included.
When I run dune build *.opam
, it generates an opam file for me with build instructions that are later on used by nix to build my project.
Since I use cmdliner to generate my man pages, they are not generated in the default command, which is
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
I also notice that it’s not using the release profile, which I’d like to use.
So my questions are:
-
How can I specify dune-project to generate a opam file where it uses the release profile for building the project?
-
When running dune build, how do I also include manpages that are generated with cmdliner and package these together in the final result (I.E. binary under /bin and manpages under /man).