summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
Diffstat (limited to 'man')
-rw-r--r--man/CMakeLists.txt18
1 files changed, 10 insertions, 8 deletions
diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt
index 9b6956a..1540812 100644
--- a/man/CMakeLists.txt
+++ b/man/CMakeLists.txt
@@ -1,11 +1,12 @@
-set(PYTHON python)
-set(LIBRARY "libcmark")
-
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
@@ -14,6 +15,7 @@ if (NOT MSVC)
${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
@@ -21,10 +23,10 @@ if (NOT MSVC)
${CMAKE_CURRENT_SOURCE_DIR}/man1/cmark.1
${CMAKE_CURRENT_BINARY_DIR}/cmark.1
)
-endif(NOT MSVC)
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmark.1
- DESTINATION share/man/man1)
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmark.1
+ DESTINATION share/man/man1)
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmark.3
- DESTINATION share/man/man3)
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmark.3
+ DESTINATION share/man/man3)
+endif(NOT MSVC) \ No newline at end of file