diff -Naur camldbm-1.0/Makefile camldbm-1.0-api-doc/Makefile --- camldbm-1.0/Makefile 2011-11-22 16:56:49.000000000 +0100 +++ camldbm-1.0-api-doc/Makefile 2013-09-22 17:08:41.029920767 +0200 @@ -18,6 +18,10 @@ OCAMLMKLIB=ocamlmklib OCAMLDEP=ocamldep OCAMLRUN=ocamlrun +OCAMLDOC=ocamldoc +DOCDIR=api-doc +DOCPRM=-html +MKDIR=mkdir O=o A=a SO=so @@ -65,6 +69,10 @@ cd $(LIBDIR) && ranlib dbm.$(A) if test -f dbm.cmxs; then cp dbm.cmxs $(LIBDIR)/; fi +doc:: + $(MKDIR) -p $(DOCDIR) + $(OCAMLDOC) -d $(DOCDIR) $(DOCPRM) dbm.mli + clean:: rm -f *.cm* *.$(O) *.$(A) *.$(SO)