1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

doc: add new cmake option MANDIR (bug #36776)

${SHAREDIR}/man is not always the correct path, so add option to customize path.
This is set to "${SHAREDIR}/man" by default.

Signed-off-by: Simon Kuhnle <simon@blarzwurst.de>
This commit is contained in:
Simon Kuhnle
2012-07-05 12:07:23 +02:00
committed by Sebastien Helleu
parent 26d7fcfc97
commit 14e98a5fae
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -49,6 +49,10 @@ IF(NOT DEFINED SHAREDIR)
SET(SHAREDIR ${CMAKE_INSTALL_PREFIX}/share)
ENDIF(NOT DEFINED SHAREDIR)
IF(NOT DEFINED MANDIR)
SET(MANDIR ${SHAREDIR}/man)
ENDIF(NOT DEFINED MANDIR)
IF(NOT DEFINED LOCALEDIR)
SET(LOCALEDIR ${SHAREDIR}/locale)
ENDIF(NOT DEFINED LOCALEDIR)
+1 -1
View File
@@ -35,4 +35,4 @@ IF(ENABLE_DOC)
ENDIF(ENABLE_DOC)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/weechat-curses.1 DESTINATION ${SHAREDIR}/man/man1)
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/weechat-curses.1 DESTINATION ${MANDIR}/man1)