summaryrefslogtreecommitdiff
path: root/man/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'man/CMakeLists.txt')
-rw-r--r--man/CMakeLists.txt32
1 files changed, 4 insertions, 28 deletions
diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt
index 1540812..443996e 100644
--- a/man/CMakeLists.txt
+++ b/man/CMakeLists.txt
@@ -1,32 +1,8 @@
if (NOT MSVC)
- set(PYTHON python)
- set(LIBRARY "libcmark")
-
- add_custom_target(man ALL
- DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/cmark.3
- DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/cmark.1
- )
-
- add_custom_command(
- OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/cmark.3
- DEPENDS ${CMAKE_SOURCE_DIR}/src/cmark.h
- DEPENDS ${LIBRARY}
- COMMAND ${PYTHON} ${CMAKE_CURRENT_SOURCE_DIR}/make_man_page.py
- ${CMAKE_SOURCE_DIR}/src/cmark.h >
- ${CMAKE_CURRENT_BINARY_DIR}/cmark.3
- )
-
- add_custom_command(
- OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/cmark.1
- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/man1/cmark.1
- COMMAND cp
- ${CMAKE_CURRENT_SOURCE_DIR}/man1/cmark.1
- ${CMAKE_CURRENT_BINARY_DIR}/cmark.1
- )
-
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmark.1
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/man1/cmark.1
DESTINATION share/man/man1)
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmark.3
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/man3/cmark.3
DESTINATION share/man/man3)
-endif(NOT MSVC) \ No newline at end of file
+endif(NOT MSVC)
+