From fb42ebcc093bf4ae0b3eb42c4ca515fbaf03091e Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Tue, 29 Jan 2013 15:02:56 +0100 Subject: [PATCH] Makefile target to install the library --- META | 6 ++++++ Makefile | 11 ++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 META diff --git a/META b/META new file mode 100644 index 0000000..31a82d1 --- /dev/null +++ b/META @@ -0,0 +1,6 @@ +name="sequence" +version="0.1" +description="Abstract sequences of elements, for conversion into and from data structures" +requires="" +archive(byte) = "sequence.cma" +archive(native) = "sequence.cmxa" diff --git a/Makefile b/Makefile index c4d0108..2d66f76 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,15 @@ +NAME = sequence +DOC = sequence.docdir/index.html +TARGETS = sequence.cma sequence.cmxa sequence.cmi sequence.a +LIB = $(addprefix _build/, $(TARGETS)) +INSTALL = $(LIB) sequence.mli + all: - ocamlbuild tests.native sequence.docdir/index.html + ocamlbuild tests.native $(TARGETS) $(DOC) + +install: all + ocamlfind install $(NAME) META $(INSTALL) clean: ocamlbuild -clean