mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-16 07:47:22 +01:00
build: enable distro specific doc's path
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
5758a3919a
commit
ea930d8972
1 changed files with 7 additions and 1 deletions
|
@ -249,6 +249,13 @@ else()
|
|||
set(XDG_CONFIG_DIR ${SYSCONFDIR}/xdg CACHE PATH "xdg config directory")
|
||||
endif()
|
||||
|
||||
# setting AWESOME_DOC_PATH
|
||||
if(DEFINED AWESOME_DOC_PATH)
|
||||
set(AWESOME_DOC_PATH ${AWESOME_DOC_PATH} CACHE PATH "awesome docs directory")
|
||||
else()
|
||||
set(AWESOME_DOC_PATH ${PREFIX}/share/doc/${PROJECT_AWE_NAME} CACHE PATH "awesome docs directory")
|
||||
endif()
|
||||
|
||||
# Hide to avoid confusion
|
||||
mark_as_advanced(CMAKE_INSTALL_PREFIX)
|
||||
|
||||
|
@ -259,7 +266,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_DOC_PATH ${PREFIX}/share/doc/${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)
|
||||
|
|
Loading…
Reference in a new issue