diff options
author | 2017-12-01 08:21:01 -0500 | |
---|---|---|
committer | 2017-12-01 08:21:01 -0500 | |
commit | 1cfebe827ae53a243ffdd1e09f8b71d4c1a4e254 (patch) | |
tree | b74002984ff80201c02ed9c22ca2fe1cdae98e23 /CMake/Manpage.cmake | |
parent | Merge pull request #1482 from acrisci/refactor/use-frame-done (diff) | |
parent | update travis (diff) | |
download | sway-1cfebe827ae53a243ffdd1e09f8b71d4c1a4e254.tar.gz sway-1cfebe827ae53a243ffdd1e09f8b71d4c1a4e254.tar.zst sway-1cfebe827ae53a243ffdd1e09f8b71d4c1a4e254.zip |
Merge pull request #1479 from acrisci/feature/meson-build
meson build
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() | ||