简体   繁体   中英

How to use ocamlbuild with OPAM in ocaml?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM