diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-11-29 17:33:54 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-11-29 17:34:39 -0800 |
commit | 1bedbcee8a66eeb1d9dbaf172d237a1b8c84939a (patch) | |
tree | 99db0a9091bb0a5ee53a2c5adddc65348d0e8162 /man/CMakeLists.txt | |
parent | dc5345daad121be5ee38e673acd532e69d5f8e75 (diff) |
Added very basic cmark.3 man page, added to install process.
This currently just contains a list of functions. It needs some
accompanying text, commentary, examples.
See #224.
Diffstat (limited to 'man/CMakeLists.txt')
-rw-r--r-- | man/CMakeLists.txt | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt index 4aba777..afb8711 100644 --- a/man/CMakeLists.txt +++ b/man/CMakeLists.txt @@ -1,27 +1,5 @@ -set(MANDEST ${CMAKE_CURRENT_BINARY_DIR}) -file(MAKE_DIRECTORY ${MANDEST}/man1) +INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/man1/cmark.1 + DESTINATION share/man/man1) -add_custom_target(manpages ALL - DEPENDS ${MANDEST}/man1/cmark.1 -) - -# This is a temporary fallback until we get a cmark-based -# build procedure for the man pages: -add_custom_command(OUTPUT ${MANDEST}/man1/cmark.1 - DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/man1/cmark.1 - COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/man1/cmark.1 - ${MANDEST}/man1/cmark.1 VERBATIM -) - -# 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) +INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/man3/cmark.3 + DESTINATION share/man/man3)
\ No newline at end of file |