diff --git a/CMakeLists.txt b/CMakeLists.txt index 049eaa6..97dda92 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -80,16 +80,16 @@ add_custom_command( OUTPUT defaults.out ) # the manpage -add_custom_command( OUTPUT doc/lsyncd.1 +add_custom_command( OUTPUT doc/manpage/lsyncd.1 COMMAND ${CMAKE_COMMAND} -E echo "Updating the manpage" - COMMAND a2x --format=manpage doc/lsyncd.1.txt - DEPENDS doc/lsyncd.1.txt + COMMAND a2x --format=manpage doc/manpage/lsyncd.1.txt + DEPENDS doc/manpage/lsyncd.1.txt ) -add_custom_target( manpage ALL DEPENDS doc/lsyncd.1 ) +add_custom_target( manpage ALL DEPENDS doc/manpage/lsyncd.1 ) # compiling and linking it all together add_executable( lsyncd ${LSYNCD_SRC} ) target_link_libraries( lsyncd ${LUA_LIBRARIES} ) install( TARGETS lsyncd RUNTIME DESTINATION bin ) -install( FILES doc/lsyncd.1 DESTINATION man) +install( FILES doc/manpage/lsyncd.1 DESTINATION man)