2

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?

Jackson Tale
  • 25,428
  • 34
  • 149
  • 271

1 Answers1

5

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.

rgrinberg
  • 9,638
  • 7
  • 27
  • 44