generate man pages in man/

This commit is contained in:
Simon Cruanes 2013-10-17 13:43:13 +02:00
parent 049fe898ce
commit 2b74a6aafb
2 changed files with 7 additions and 2 deletions

1
.gitignore vendored
View file

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

View file

@ -8,6 +8,10 @@ INSTALL = $(LIB) sequence.mli
all: all:
ocamlbuild $(TARGETS) $(DOC) ocamlbuild $(TARGETS) $(DOC)
doc: all
mkdir -p man/man3/
ocamlfind ocamldoc -I _build/ *.ml{,i} -man -d man/man3/
benchs: all benchs: all
ocamlbuild -use-ocamlfind -pkg bench -pkg unix tests/benchs.native \ ocamlbuild -use-ocamlfind -pkg bench -pkg unix tests/benchs.native \
tests/simple_bench.native tests/simple_bench.native
@ -15,10 +19,10 @@ benchs: all
tests: tests:
ocamlbuild -use-ocamlfind -pkg oUnit tests/run_tests.native ocamlbuild -use-ocamlfind -pkg oUnit tests/run_tests.native
install: all install: all doc
ocamlfind install $(NAME) META $(INSTALL) ocamlfind install $(NAME) META $(INSTALL)
push_doc: all push_doc: all doc
scp -r sequence.docdir/ cedeela.fr:~/simon/root/software/sequence/ scp -r sequence.docdir/ cedeela.fr:~/simon/root/software/sequence/
clean: clean: