adding install targets and reenabling the manpage stuff

This commit is contained in:
Axel Kittenberger 2014-04-29 16:38:25 +02:00
parent f199fd1866
commit 4da2257758
2 changed files with 11 additions and 0 deletions

1
.gitignore vendored
View File

@ -14,6 +14,7 @@ build/
CMakeCache.txt
CMakeFiles/
cmake_install.cmake
install_manifest.txt
# generated C code

View File

@ -79,7 +79,17 @@ add_custom_command( OUTPUT defaults.out
DEPENDS ${DEFAULT_CONFIGS}
)
# the manpage
add_custom_command( OUTPUT doc/lsyncd.1
COMMAND ${CMAKE_COMMAND} -E echo "Updating the manpage"
COMMAND a2x --format=manpage doc/lsyncd.1.txt
DEPENDS doc/lsyncd.1.txt
)
add_custom_target( manpage ALL DEPENDS doc/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)