From 950ae7a50849c8f5e848de5dead665c2b31131de Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Fri, 1 Jul 2022 15:06:19 +0200 Subject: [PATCH] make ocaml-install in Makefile.am --- Makefile.am | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 2bfe889..f119570 100644 --- a/Makefile.am +++ b/Makefile.am @@ -227,6 +227,22 @@ cppcheck.out: $(trexio_h) --language=c --std=c99 -rp --platform=unix64 \ -I../include *.c *.h 2>../$@ +################# +# OCaml binding # +################# + +ocaml/trexio/_build/default/lib/trexio.cma: + $(MAKE) -C ocaml/trexio + +ocaml: ocaml/trexio/_build/default/lib/trexio.a + +ocaml-install: ocaml/trexio/_build/default/lib/trexio.a + opam install ocaml/trexio + +################## +# Python binding # +################## + setup_py = $(srcdir)/python/setup.py setup_cfg = $(srcdir)/python/setup.cfg pytrexio_py = $(srcdir)/python/pytrexio/pytrexio.py @@ -278,6 +294,6 @@ CLEANFILES += $(pytrexio_c) \ python/src/*.c \ python/src/*.h -.PHONY: cppcheck python-test python-install python-sdist check-numpy FORCE +.PHONY: cppcheck python-test python-install python-sdist check-numpy FORCE ocaml endif