From ca8d595bff53ffd877c9feef431b1f52de168cec Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 12 Aug 2008 16:26:29 +0200 Subject: [PATCH] build: man path is now configurable Signed-off-by: Julien Danjou --- awesomeConfig.cmake | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index 69ec15966..3d23c2344 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -263,6 +263,13 @@ else() set(AWESOME_XSESSION_PATH ${PREFIX}/share/xsessions CACHE PATH "awesome xsessions directory") endif() +# set man path +if(DEFINED AWESOME_MAN_PATH) + set(AWESOME_MAN_PATH ${AWESOME_MAN_PATH} CACHE PATH "awesome manpage directory") +else() + set(AWESOME_MAN_PATH ${PREFIX}/share/man CACHE PATH "awesome manpage directory") +endif() + # Hide to avoid confusion mark_as_advanced(CMAKE_INSTALL_PREFIX) @@ -273,7 +280,6 @@ set(AWESOME_COMPILE_BY $ENV{USER}) set(AWESOME_RELEASE ${CODENAME}) set(AWESOME_SYSCONFDIR ${XDG_CONFIG_DIR}/${PROJECT_AWE_NAME}) set(AWESOME_DATA_PATH ${PREFIX}/share/${PROJECT_AWE_NAME}) -set(AWESOME_MAN_PATH ${PREFIX}/share/man) set(AWESOME_LUA_LIB_PATH ${AWESOME_DATA_PATH}/lib) set(AWESOME_ICON_PATH ${AWESOME_DATA_PATH}/icons) set(AWESOME_THEMES_PATH ${AWESOME_DATA_PATH}/themes)