Installing a whole new build system is pretty pointless, when a Makefile is not only far more portable, but it's simpler too!
OCAML_VERSION := $(shell ocamlopt -version)
all: ocplib_endian.cmxa
ocplib_endian.cmxa: endianString.cmx endianBytes.cmx
ocamlfind mklib -o ocplib_endian $<
%.mli: %.cppo.mli
cppo -V OCAML:$(OCAML_VERSION) $< -o $@
%.ml: %.cppo.ml
cppo -V OCAML:$(OCAML_VERSION) $< -o $@
%.cmx: %.ml
ocamlfind opt -c $< -o $@
endianString.ml: endianString.cppo.ml common.ml common_401.ml common_400.ml
endianBytes.ml: endianBytes.cppo.ml endianBytes.cppo.ml common.ml common_401.ml common_400.ml
endianBigString.ml: endianBigString.cppo.ml common.ml common_401.ml common_400.ml
common_400.ml: common_400.cppo.ml be_ocaml_400.ml le_ocaml_400.ml ne_ocaml_400.ml common_float.ml
common_401.ml: common_401.cppo.ml be_ocaml_401.ml le_ocaml_401.ml ne_ocaml_401.ml common_float.ml
Installing a whole new build system is pretty pointless, when a Makefile is not only far more portable, but it's simpler too!