Browse files

add a doc target

  • Loading branch information...
1 parent 5fa5d34 commit be748e7d003e74bb19404540554d2b212d24fefb @avsm committed Dec 30, 2011
Showing with 55 additions and 6 deletions.
  1. +4 −1 Makefile
  2. +8 −1 _oasis
  3. +1 −0 _tags
  4. +14 −0 lib/cohttp.odocl
  5. +28 −4 setup.ml
View
5 Makefile
@@ -1,12 +1,15 @@
.PHONY: all clean install build
-all: build
+all: build doc
setup.data:
ocaml setup.ml -configure
build: setup.data
ocaml setup.ml -build
+doc: setup.data
+ ocaml setup.ml -doc
+
install:
ocaml setup.ml -install
View
9 _oasis
@@ -5,11 +5,18 @@ Synopsis: HTTP protocol library for Lwt
Authors: Anil Madhavapeddy, Stefano Zacchiroli, David Sheets, Thomas Gazagnaire
License: LGPL-2.0 with OCaml linking exception
Plugins: META (0.2)
+BuildTools: ocamlbuild
Library cohttp
Path: lib
Findlibname: cohttp
Pack: true
Modules: Base64, Common, Constants, Cookie, Misc, Parser, Request, Response, Types, Url, Message
- BuildTools: ocamlbuild
BuildDepends: lwt.syntax, lwt, regexp, lwt.unix
+
+Document cohttp
+ Title: Cohttp docs
+ Type: ocamlbuild (0.2)
+ BuildTools+: ocamldoc
+ XOCamlbuildPath: lib
+ XOCamlbuildLibraries: cohttp
View
1 _tags
@@ -43,3 +43,4 @@
<lib/*.ml{,i}>: pkg_lwt
# OASIS_STOP
<lib/*>: syntax_camlp4o
+<lib/*>: pkg_lwt.syntax
View
14 lib/cohttp.odocl
@@ -0,0 +1,14 @@
+# OASIS_START
+# DO NOT EDIT (digest: 782a253cb0b38890b12ff79e98867c67)
+Base64
+Common
+Constants
+Cookie
+Misc
+Parser
+Request
+Response
+Types
+Url
+Message
+# OASIS_STOP
View
32 setup.ml
@@ -1,7 +1,7 @@
(* setup.ml generated for the first time by OASIS v0.2.1~alpha1 *)
(* OASIS_START *)
-(* DO NOT EDIT (digest: cd2fbdf3d26445eed64dc8a191afa93f) *)
+(* DO NOT EDIT (digest: 3ecdc2afac1007835557e9c4bd238380) *)
(*
Regenerated by OASIS v0.2.1~alpha1
Visit http://oasis.forge.ocamlcore.org for more information and
@@ -4988,12 +4988,12 @@ let setup_t =
BaseSetup.configure = InternalConfigurePlugin.configure;
build = OCamlbuildPlugin.build;
test = [];
- doc = [];
+ doc = [("cohttp", OCamlbuildDocPlugin.doc_build "lib")];
install = InternalInstallPlugin.install;
uninstall = InternalInstallPlugin.uninstall;
clean = [OCamlbuildPlugin.clean];
clean_test = [];
- clean_doc = [];
+ clean_doc = [("cohttp", OCamlbuildDocPlugin.doc_clean "lib")];
distclean = [];
distclean_test = [];
distclean_doc = [];
@@ -5061,6 +5061,30 @@ let setup_t =
files_ab = [];
sections =
[
+ Doc
+ ({
+ cs_name = "cohttp";
+ cs_data = PropList.Data.create ();
+ cs_plugin_data = [];
+ },
+ {
+ doc_type = (`Doc, "ocamlbuild", Some "0.2");
+ doc_custom =
+ {
+ pre_command = [(OASISExpr.EBool true, None)];
+ post_command = [(OASISExpr.EBool true, None)];
+ };
+ doc_build = [(OASISExpr.EBool true, true)];
+ doc_install = [(OASISExpr.EBool true, true)];
+ doc_install_dir = "$docdir";
+ doc_title = "Cohttp docs";
+ doc_authors = [];
+ doc_abstract = None;
+ doc_format = OtherDoc;
+ doc_data_files = [];
+ doc_build_tools =
+ [ExternalTool "ocamlbuild"; ExternalTool "ocamldoc"];
+ });
Library
({
cs_name = "cohttp";
@@ -5120,6 +5144,6 @@ let setup_t =
let setup () = BaseSetup.setup setup_t;;
-# 5124 "setup.ml"
+# 5148 "setup.ml"
(* OASIS_STOP *)
let () = setup ();;

0 comments on commit be748e7

Please sign in to comment.