Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 8723269377104f6ad7c452b48f81074b > files > 3

lsyncd-2.3.1-2.mga9.src.rpm

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 )