diff --git a/.gitignore b/.gitignore index 7fa0bfb..98dece2 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ _build *.docdir *.html man/ +sequence.install diff --git a/Makefile b/Makefile index f0539fe..47ffb80 100644 --- a/Makefile +++ b/Makefile @@ -5,13 +5,28 @@ TARGETS = sequence.cma sequence.cmxa sequence.cmi sequence.a LIB = $(addprefix _build/, $(TARGETS)) INSTALL = $(LIB) sequence.mli -all: +bin: ocamlbuild $(TARGETS) $(DOC) -doc: all +doc: bin mkdir -p man/man3/ ocamlfind ocamldoc -I _build/ *.ml{,i} -man -d man/man3/ +install_file: + @rm sequence.install || true + @echo 'doc: [' >> sequence.install + @for m in $(wildcard sequence.docdir/*.html) ; do \ + echo ?"$${m}" >> sequence.install; \ + done + @echo ']' >> sequence.install + @echo 'man: [' >> sequence.install + @for m in $(wildcard man/man3/[A-Z]*.3o) ; do \ + echo ?"$${m}" >> sequence.install; \ + done + @echo ']' >> sequence.install + +all: bin doc install_file + benchs: all ocamlbuild -use-ocamlfind -pkg bench -pkg unix tests/benchs.native \ tests/simple_bench.native