diff options
author | 2018-04-12 20:19:54 -0400 | |
---|---|---|
committer | 2018-04-12 20:19:54 -0400 | |
commit | cd1b32453a9296c18b28bff71607aeb22987b5cd (patch) | |
tree | c653c6d525b471914c01a9d7ae543f521b6138ed /CMake/Manpage.cmake | |
parent | Merge pull request #1634 from aleksander/master (diff) | |
parent | Fix separator height calculation (diff) | |
download | sway-cd1b32453a9296c18b28bff71607aeb22987b5cd.tar.gz sway-cd1b32453a9296c18b28bff71607aeb22987b5cd.tar.zst sway-cd1b32453a9296c18b28bff71607aeb22987b5cd.zip |
Merge branch 'wlroots'
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() | ||