blob: 309ff7c8d702b8847611b51427fc711c7b225d1a (
plain)
1
2
3
4
5
6
7
8
9
|
set(MANPAGES smolbote.1;smolbote-profile.5;smolboterc.5)
find_program(SCDOC scdoc)
foreach(F ${MANPAGES})
add_custom_command(OUTPUT ${F} COMMAND ${SCDOC} < ${CMAKE_CURRENT_SOURCE_DIR}/${F}.scd > ${F} VERBATIM)
endforeach()
add_custom_target(man DEPENDS ${MANPAGES})
install(FILES smolbote.1 DESTINATION /usr/local/man)
|