From 1bedbcee8a66eeb1d9dbaf172d237a1b8c84939a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 29 Nov 2014 17:33:54 -0800 Subject: 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. --- man/CMakeLists.txt | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) (limited to 'man/CMakeLists.txt') 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 -- cgit v1.2.3