diff -Nru a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt 2018-03-09 13:39:11.000000000 +0100 +++ b/CMakeLists.txt 2018-03-13 06:10:09.340304542 +0100 @@ -82,8 +82,8 @@ # the manpage add_custom_target( manpage COMMAND ${CMAKE_COMMAND} -E echo "Updating the manpage" - COMMAND a2x --format=manpage doc/manpage/lsyncd.1.txt - DEPENDS doc/manpage/lsyncd.1.txt + COMMAND a2x --format=manpage ${PROJECT_SOURCE_DIR}/doc/manpage/lsyncd.1.txt + DEPENDS ${PROJECT_SOURCE_DIR}/doc/manpage/lsyncd.1.txt ) add_custom_target( tests @@ -107,5 +107,5 @@ target_link_libraries( lsyncd ${LUA_LIBRARIES} ) install( TARGETS lsyncd RUNTIME DESTINATION bin ) -install( FILES doc/manpage/lsyncd.1 DESTINATION man ) +install( FILES doc/manpage/lsyncd.1 DESTINATION share/man/man1 )