diff options
Diffstat (limited to 'man/CMakeLists.txt')
-rw-r--r-- | man/CMakeLists.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt new file mode 100644 index 0000000..29bb19c --- /dev/null +++ b/man/CMakeLists.txt @@ -0,0 +1,19 @@ +set(MANDEST ${CMAKE_CURRENT_BINARY_DIR}) +file(MAKE_DIRECTORY ${MANDEST}/man1) + +add_custom_target(doc ALL + DEPENDS ${MANDEST}/man1/cmark.1 +) + +add_custom_command(OUTPUT ${MANDEST}/man1/cmark.1 + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/cmark.1.md + COMMAND pandoc "-s" "-t" "man" + ${CMAKE_CURRENT_SOURCE_DIR}/cmark.1.md + -o ${MANDEST}/man1/cmark.1 + VERBATIM) + +INSTALL(FILES ${MANDEST}/man1/cmark.1 DESTINATION share/man/man1) + +# TODO: create cmark.3 man page. +# file(MAKE_DIRECTORY ${MANDEST}/man3) +# INSTALL(FILES ${MANDEST}/man3/cmark.3 DESTINATION share/man/man3) |