generation of sequence.install file

This commit is contained in:
Simon Cruanes 2013-10-17 14:22:35 +02:00
parent 2b74a6aafb
commit 40cc85061e
2 changed files with 18 additions and 2 deletions

1
.gitignore vendored
View file

@ -4,3 +4,4 @@ _build
*.docdir
*.html
man/
sequence.install

View file

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