build: add --htmldir option

Defaults to docdir but makes it possible to install html documentation
separately.
This commit is contained in:
Chris Mayo 2016-07-26 07:55:54 +01:00 committed by wm4
parent 3fe5ff99c6
commit f95cde60ff
2 changed files with 2 additions and 1 deletions

View File

@ -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'),

View File

@ -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)