summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2018-10-30 23:46:56 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2018-11-03 19:25:23 +0100
commit1a84c5a2366600f274c610117cef59642718bf69 (patch)
tree4a676acfbfec5c1202ba8a683803190b8245296d
parenteb3e615afb7b621cca8d4b8479531f5f65b3dfa2 (diff)
downloadocaml-sid-1a84c5a2366600f274c610117cef59642718bf69.tar.gz
oasis: add documentation target
-rw-r--r--_oasis25
-rw-r--r--sid.opam3
2 files changed, 19 insertions, 9 deletions
diff --git a/_oasis b/_oasis
index c8c8ad0..1d33f12 100644
--- a/_oasis
+++ b/_oasis
@@ -1,11 +1,12 @@
-OASISFormat: 0.4
-Name: sid
-Version: 0
-Synopsis: non
-Authors: phg
-License: GPL-3
-BuildTools: ocamlbuild
-Plugins: META (0.4), DevFiles (0.4)
+OASISFormat: 0.4
+Name: sid
+Version: 0
+Synopsis: non
+Authors: phg
+License: GPL-3
+BuildTools: ocamlbuild
+Plugins: META (0.4), DevFiles (0.4)
+AlphaFeatures: ocamlbuild_more_args
Library "sid"
Path: .
@@ -36,3 +37,11 @@ Test "test_sidparse"
TestTools: util/sidparse_test.sh
Command: util/sidparse_test.sh
+Document "sid_intf"
+ Type: ocamlbuild (0.4)
+ Buildtools: ocamldoc
+ Title: Module Sid
+ XOCamlbuildPath: .
+ XOCamlbuildExtraArgs: "-docflags '-colorize-code -short-functors -charset utf-8'"
+ XOCamlbuildLibraries: sid
+
diff --git a/sid.opam b/sid.opam
index d417760..de937d7 100644
--- a/sid.opam
+++ b/sid.opam
@@ -15,8 +15,9 @@ depends: [
]
build: [
["oasis" "setup"]
- ["ocaml" "setup.ml" "-configure"]
+ ["ocaml" "setup.ml" "-configure" "--prefix" prefix]
["ocaml" "setup.ml" "-build"]
+ ["ocaml" "setup.ml" "-doc"] {with-doc}
]
install: [make "install"]
run-test: [make "test"]