summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Kuhnle <simon@blarzwurst.de>2012-07-05 12:07:23 +0200
committerSebastien Helleu <flashcode@flashtux.org>2012-07-05 12:07:23 +0200
commit14e98a5fae6d3a8128f0d84d673715cea5920eb5 (patch)
treefb0ea6bc1319ec1068b45b9e4599b4cf111a2a08
parent26d7fcfc972fe7eb1f65c615e38e70f4edb2e1fb (diff)
downloadweechat-14e98a5fae6d3a8128f0d84d673715cea5920eb5.zip
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>
-rw-r--r--CMakeLists.txt4
-rw-r--r--doc/CMakeLists.txt2
2 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 362173cac..f9a12f118 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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)
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 89f8be3b6..f36395270 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -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)