mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-01 07:35:38 +03:00
9f5388544a
iniparser dependency is gone.
41 lines
732 B
CMake
41 lines
732 B
CMake
project(doc C)
|
|
# Build the documentation
|
|
#
|
|
|
|
include(UseDoxygen OPTIONAL)
|
|
|
|
file(GLOB _manpages *.[0-9].txt)
|
|
add_custom_target(man
|
|
COMMAND
|
|
${CMAKE_CURRENT_SOURCE_DIR}/makeman.sh ${_manpages}
|
|
WORKING_DIRECTORY
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
add_custom_target(userguide
|
|
COMMAND
|
|
${CMAKE_CURRENT_SOURCE_DIR}/makeguide.sh ocsync.txt
|
|
WORKING_DIRECTORY
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
if (UNIX)
|
|
install(
|
|
FILES
|
|
ocsync.1
|
|
DESTINATION
|
|
${MAN_INSTALL_DIR}/man1
|
|
)
|
|
set(DOC_INSTALL_PATH ${SHARE_INSTALL_PREFIX}/doc/ocsync)
|
|
endif(UNIX)
|
|
|
|
if (WIN32)
|
|
set(DOC_INSTALL_PATH ${SHARE_INSTALL_PREFIX}/doc)
|
|
endif (WIN32)
|
|
|
|
install(
|
|
DIRECTORY
|
|
userguide
|
|
DESTINATION
|
|
${DOC_INSTALL_PATH}
|
|
)
|