blob: 29bb19c4046db61e8617a2a3479449a5c2202f3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)
|