diff options
author | John MacFarlane <[email protected]> | 2014-11-29 10:50:19 -0800 |
---|---|---|
committer | John MacFarlane <[email protected]> | 2014-11-29 10:50:19 -0800 |
commit | 1a44d5bc9bb6178f254a96d3e694dd4c9f4ffecb (patch) | |
tree | 6ebadece01a36dbc5556e6c8f6c5d46bcc836197 /man/CMakeLists.txt | |
parent | ad8b39e550f2ff9a8b8e409d1654fc26135dc9fa (diff) |
Moved man page generation to man/CMakeLists.txt.
Removed doxygen stuff for now. It seems too complex for what we need.
We'll find another way to create cmark.3.
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) |