Source

ocaml-bitbucket / OMakefile

Full commit
# How-to-build using OMake
#
# yes no | omake --install # to create OMakeroot for the first time

# If OMakeroot is here, include OMyMakefile
if $(file-exists OMakeroot)
   include OMyMakefile
   export

.PHONY: all install clean

OCAMLPACKS[] =
    curl
    json-wheel
    sexplib
    meta_conv
    spotlib

OCAMLFLAGS = -annot -w A-4-9-39 
OCAMLDEPFLAGS= -syntax camlp4o -package meta_conv.syntax,sexplib.syntax
OCAMLPPFLAGS=  -syntax camlp4o -package meta_conv.syntax,sexplib.syntax

FILES[] =
    xcurl
    common
    json_wrap
    api
    hg

MyOCamlPackage(bitbucket, $(FILES), $(EMPTY), $(EMPTY))

api.p4.ml: api.ml
    camlp4o dynlink.cma -I $(HOME)/.opam/system/lib/type_conv pa_type_conv.cma -I $(HOME)/.opam/system/lib/meta_conv pa_json_tc.cmo -printer Camlp4OCamlPrinter -o api.p4.ml api.ml