build: add --htmldir option

Defaults to docdir but makes it possible to install html documentation
separately.
This commit is contained in:
Chris Mayo authored and wm4 committed 2016-07-30 00:02:40 +02:00
1 parent 3fe5ff99c6
commit f95cde60ff
2 files changed
+2 -1

No files matched your search

+1
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'),
+1 -1
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)