Just do it the way other packages do it. For example the sequence package also uses vanilla ocamlbuild
and ocamlfind
. Here's the opam package description for it: https://github.com/OCamlPro/opam-repository/tree/master/packages/sequence.0.3.4 The opam
file specifically.
How to use ocamlbuild with OPAM in ocaml?
-
29-05-2022 - |
Question
I wrote two libraries (Bson.ml and Mongo.ml) in ocaml.
I wish to enable it for opam
.
In the instruction of opam
, it says it needs make build
and make install
.
I am always using ocamlbuild
and ocamlfind
to build and install my library locally.
How can I produce a make
file for opam
?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow