mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-06 19:25:36 -05:00
[opam] Install doc conditionally
This commit is contained in:
parent
74a4677bb7
commit
1cb5eb3fcb
2 changed files with 7 additions and 7 deletions
12
Makefile
12
Makefile
|
|
@ -48,15 +48,15 @@ TO_INSTALL=META $(addprefix _build/src/,$(LIB) $(TO_INSTALL_LIB))
|
||||||
|
|
||||||
install: lib
|
install: lib
|
||||||
ocamlfind install $(NAME) $(TO_INSTALL)
|
ocamlfind install $(NAME) $(TO_INSTALL)
|
||||||
mkdir -p $(DOCDIR)
|
if [ -d "$(NAME).docdir" ]; then \
|
||||||
cp -v $(NAME).docdir/*.html $(NAME).docdir/*.css $(DOCDIR)
|
mkdir -p $(DOCDIR) ; \
|
||||||
|
cp -v $(NAME).docdir/*.html $(NAME).docdir/*.css $(DOCDIR) ; \
|
||||||
|
fi
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
ocamlfind remove $(NAME)
|
ocamlfind remove $(NAME)
|
||||||
|
rm -rf $(DOCDIR)
|
||||||
|
|
||||||
remove:
|
reinstall: | uninstall install
|
||||||
ocamlfind remove $(NAME) || true
|
|
||||||
|
|
||||||
reinstall: | remove install
|
|
||||||
|
|
||||||
.PHONY: clean doc all bench install uninstall remove reinstall enable_log disable_log bin test
|
.PHONY: clean doc all bench install uninstall remove reinstall enable_log disable_log bin test
|
||||||
|
|
|
||||||
2
opam
2
opam
|
|
@ -15,7 +15,7 @@ install: [
|
||||||
[make "DOCDIR=%{msat:doc}%" "install"]
|
[make "DOCDIR=%{msat:doc}%" "install"]
|
||||||
]
|
]
|
||||||
remove: [
|
remove: [
|
||||||
[make "uninstall"]
|
[make "DOCDIR=%{msat:doc}%" "uninstall"]
|
||||||
]
|
]
|
||||||
depends: [
|
depends: [
|
||||||
"ocamlfind" {build}
|
"ocamlfind" {build}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue