diff options
author | 2017-12-01 05:21:03 -0500 | |
---|---|---|
committer | 2017-12-01 05:21:03 -0500 | |
commit | d071ff08aeae2bbea4ac4a8e56c7a146c13d0869 (patch) | |
tree | b1780435422ac6d778fd4b9c0a4746306dee59fe /CMake/Manpage.cmake | |
parent | remove relevant CMakeLists.txt (diff) | |
download | sway-d071ff08aeae2bbea4ac4a8e56c7a146c13d0869.tar.gz sway-d071ff08aeae2bbea4ac4a8e56c7a146c13d0869.tar.zst sway-d071ff08aeae2bbea4ac4a8e56c7a146c13d0869.zip |
remove the rest of cmake
Diffstat (limited to 'CMake/Manpage.cmake')
-rw-r--r-- | CMake/Manpage.cmake | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/CMake/Manpage.cmake b/CMake/Manpage.cmake deleted file mode 100644 index bbd6f2dc..00000000 --- a/CMake/Manpage.cmake +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | find_package(A2X) | ||
2 | |||
3 | if (A2X_FOUND) | ||
4 | add_custom_target(man ALL) | ||
5 | |||
6 | function(add_manpage name section) | ||
7 | add_custom_command( | ||
8 | OUTPUT ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${name}.${section} | ||
9 | COMMAND ${A2X_COMMAND} | ||
10 | --no-xmllint | ||
11 | --doctype manpage | ||
12 | --format manpage | ||
13 | -D ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} | ||
14 | ${CMAKE_CURRENT_SOURCE_DIR}/${name}.${section}.txt | ||
15 | DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${name}.${section}.txt | ||
16 | COMMENT Generating manpage for ${name}.${section} | ||
17 | ) | ||
18 | |||
19 | add_custom_target(man-${name}.${section} | ||
20 | DEPENDS | ||
21 | ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${name}.${section} | ||
22 | ) | ||
23 | add_dependencies(man | ||
24 | man-${name}.${section} | ||
25 | ) | ||
26 | |||
27 | install( | ||
28 | FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${name}.${section} | ||
29 | DESTINATION ${CMAKE_INSTALL_FULL_MANDIR}/man${section} | ||
30 | COMPONENT documentation | ||
31 | ) | ||
32 | endfunction() | ||
33 | endif() | ||