diff options
author | 2015-08-18 01:33:12 -0700 | |
---|---|---|
committer | 2015-08-18 01:33:12 -0700 | |
commit | 2f8a23924893663473e24c4ca3407e8e1005f37e (patch) | |
tree | 4ae7a93d6c31b1dd78c78ca884e723717e1cd589 /CMakeLists.txt | |
parent | fixed doubling memory bug for config lines longer then 128 (diff) | |
parent | Document asciidoc dependency (diff) | |
download | sway-2f8a23924893663473e24c4ca3407e8e1005f37e.tar.gz sway-2f8a23924893663473e24c4ca3407e8e1005f37e.tar.zst sway-2f8a23924893663473e24c4ca3407e8e1005f37e.zip |
Merge branch 'master' of https://github.com/SirCmpwn/sway
merge
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 27839b1d..9a49c169 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -43,3 +43,29 @@ INSTALL( | |||
43 | FILES ${PROJECT_SOURCE_DIR}/config | 43 | FILES ${PROJECT_SOURCE_DIR}/config |
44 | DESTINATION /etc/sway/ | 44 | DESTINATION /etc/sway/ |
45 | ) | 45 | ) |
46 | |||
47 | ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/sway.1 | ||
48 | COMMAND a2x --no-xmllint --doctype manpage --format manpage | ||
49 | -D ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} ${CMAKE_CURRENT_SOURCE_DIR}/sway.1.txt | ||
50 | DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/sway.1.txt | ||
51 | ) | ||
52 | |||
53 | ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/sway.5 | ||
54 | COMMAND a2x --no-xmllint --doctype manpage --format manpage | ||
55 | -D ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} ${CMAKE_CURRENT_SOURCE_DIR}/sway.5.txt | ||
56 | DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/sway.5.txt | ||
57 | ) | ||
58 | |||
59 | ADD_CUSTOM_TARGET(man ALL | ||
60 | DEPENDS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/sway.1 | ||
61 | DEPENDS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/sway.5) | ||
62 | |||
63 | INSTALL( | ||
64 | FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/sway.1 | ||
65 | DESTINATION ${CMAKE_INSTALL_PREFIX}/man/man1 | ||
66 | ) | ||
67 | |||
68 | INSTALL( | ||
69 | FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/sway.5 | ||
70 | DESTINATION ${CMAKE_INSTALL_PREFIX}/man/man5 | ||
71 | ) | ||