From 2b74a6aafb9bb23f87507e4b382fa6dcc5555e49 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Thu, 17 Oct 2013 13:43:13 +0200 Subject: [PATCH] generate man pages in man/ --- .gitignore | 1 + Makefile | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 6b8a93a..7fa0bfb 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ _build *.native *.docdir *.html +man/ diff --git a/Makefile b/Makefile index b8c9e9d..f0539fe 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,10 @@ INSTALL = $(LIB) sequence.mli all: ocamlbuild $(TARGETS) $(DOC) +doc: all + mkdir -p man/man3/ + ocamlfind ocamldoc -I _build/ *.ml{,i} -man -d man/man3/ + benchs: all ocamlbuild -use-ocamlfind -pkg bench -pkg unix tests/benchs.native \ tests/simple_bench.native @@ -15,10 +19,10 @@ benchs: all tests: ocamlbuild -use-ocamlfind -pkg oUnit tests/run_tests.native -install: all +install: all doc ocamlfind install $(NAME) META $(INSTALL) -push_doc: all +push_doc: all doc scp -r sequence.docdir/ cedeela.fr:~/simon/root/software/sequence/ clean: