Makefile target to install the library

This commit is contained in:
Simon Cruanes 2013-01-29 15:02:56 +01:00
parent 0b47a10e9b
commit fb42ebcc09
2 changed files with 16 additions and 1 deletions

6
META Normal file
View file

@ -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"

View file

@ -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: all:
ocamlbuild tests.native sequence.docdir/index.html ocamlbuild tests.native $(TARGETS) $(DOC)
install: all
ocamlfind install $(NAME) META $(INSTALL)
clean: clean:
ocamlbuild -clean ocamlbuild -clean