Skip to content
Snippets Groups Projects
Commit 1f9c9440 authored by Allan Blanchard's avatar Allan Blanchard
Browse files

[opam] opam doc install

parent c0a5aabd
No related branches found
No related tags found
No related merge requests found
......@@ -90,13 +90,18 @@ tags: [
build: [
["bash" "dev/disable-plugins.sh" "e-acsl"] { os-family = "windows" }
["dune" "build" "-j%{jobs}%" "--release" "--promote-install-files=false" "@install"]
[make "-C" "doc" "download"] {with-doc}
["dune" "build" "-j%{jobs}%" "--release" "--promote-install-files=false"
"@install"
"@doc" { with-doc }
]
]
install: [
[make "PREFIX=%{prefix}%" "MANDIR=%{mandir}%" "install"]
[make "PREFIX=%{prefix}%" "-C" "doc" "install"] {with-doc}
[make
"PREFIX=%{prefix}%" "MANDIR=%{man}%"
"DOCDIR=%{doc}%" { with-doc }
"install"
]
]
remove: [
......@@ -122,6 +127,7 @@ depends: [
"ocaml" { >= "4.11.1" }
"ocamlfind" # needed beyond build stage, used by -load-module
"ocamlgraph" { >= "1.8.8" }
"odoc" { with-doc }
"why3" { >= "1.6.0" }
"yaml" { >= "3.0.0" }
"yojson" {>= "1.6.0" & (>= "2.0.1" | !with-test)}
......
......@@ -33,6 +33,14 @@ doc:
@echo "Generated Documentation:"
@echo " file:///$(PWD)/_build/default/_doc/_html/index.html"
ifneq (${DOCDIR},)
install:: doc
@mkdir -p ${DOCDIR}/frama-c
@cp -r _build/default/_doc/_html/* ${DOCDIR}/frama-c
endif
##########################################################################
# #
# Generate Documentation for Server Requests and Protocols. #
......@@ -41,7 +49,7 @@ doc:
.PHONY: server-doc-md server-doc-html server-doc
ifeq (NO_BUILD_FRAMAC,yes)
ifeq (${NO_BUILD_FRAMAC},yes)
# Make sure that Frama-C is not rebuilt essentially for CI purpose
server-doc-md:
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment