commit eca24537a379da2652e8ab8e073195c73ad79c66 Author: Nicolas Lécureuil <neoclust@mageia.org> Date: Tue Sep 13 12:02:57 2022 +0200 Fix man and doc install dir diff --git a/CMakeLists.txt b/CMakeLists.txt index 226a444..1cfa896 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,8 +85,8 @@ add_custom_command( OUTPUT defaults.out # the manpage add_custom_target( manpage COMMAND ${CMAKE_COMMAND} -E echo "Updating the manpage" - COMMAND a2x --format=manpage docs/manpage/lsyncd.1.txt - DEPENDS docs/manpage/lsyncd.1.txt + COMMAND a2x --format=manpage ${PROJECT_SOURCE_DIR}/docs/manpage/lsyncd.1.txt + DEPENDS ${PROJECT_SOURCE_DIR}/docs/manpage/lsyncd.1.txt ) # the html documention @@ -127,6 +127,6 @@ add_executable( lsyncd ${LSYNCD_SRC} ) target_link_libraries( lsyncd ${LUA_LIBRARIES} ) install( TARGETS lsyncd RUNTIME DESTINATION bin ) -install( FILES docs/manpage/lsyncd.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT man ) -install( DIRECTORY examples DESTINATION doc ) -install( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION doc OPTIONAL) +install( FILES docs/manpage/lsyncd.1 DESTINATION share/man/man1 ) +install( DIRECTORY examples DESTINATION share/doc/lsyncd ) +install( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION doc OPTIONAL )