summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mayo <aklhfex@gmail.com>2016-07-26 07:55:54 +0100
committerwm4 <wm4@nowhere>2016-07-30 00:02:40 +0200
commitf95cde60ff02e897088d35052426964a3db90eb7 (patch)
tree736b24832123fe789ff918342f8ae218c9f74841
parent3fe5ff99c692e8bf9eaf353c20d1e78e375c92b2 (diff)
downloadmpv-f95cde60ff02e897088d35052426964a3db90eb7.tar.bz2
mpv-f95cde60ff02e897088d35052426964a3db90eb7.tar.xz
build: add --htmldir option
Defaults to docdir but makes it possible to install html documentation separately.
-rw-r--r--wscript1
-rw-r--r--wscript_build.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/wscript b/wscript
index 9269d95b54..309efd3bb2 100644
--- a/wscript
+++ b/wscript
@@ -942,6 +942,7 @@ _INSTALL_DIRS_LIST = [
('datadir', '${PREFIX}/share', 'data files'),
('mandir', '${DATADIR}/man', 'man pages '),
('docdir', '${DATADIR}/doc/mpv', 'documentation files'),
+ ('htmldir', '${DOCDIR}', 'html documentation files'),
('zshdir', '${DATADIR}/zsh/site-functions', 'zsh completion functions'),
('confloaddir', '${CONFDIR}', 'configuration files load directory'),
diff --git a/wscript_build.py b/wscript_build.py
index 13d89ce6a1..257be27462 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -19,7 +19,7 @@ def _build_html(ctx):
target = 'DOCS/man/mpv.html',
source = 'DOCS/man/mpv.rst',
rule = '${RST2HTML} ${SRC} ${TGT}',
- install_path = ctx.env.DOCDIR)
+ install_path = ctx.env.HTMLDIR)
_add_rst_manual_dependencies(ctx)