質問

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?

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top