blob: 84241e05246213e01a0445f1260567636ffdc662 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
diff --git a/man/adoc/CMakeLists.txt b/man/adoc/CMakeLists.txt
index 1a81dee0..c93ccbd2 100644
--- a/man/adoc/CMakeLists.txt
+++ b/man/adoc/CMakeLists.txt
@@ -1,7 +1,5 @@
-find_program(GZIP gzip REQUIRED)
find_program(ASCIIDOCTOR asciidoctor)
file(GLOB FILES *.adoc)
-set(GZFILES "")
if(NOT "${ASCIIDOCTOR}" STREQUAL "ASCIIDOCTOR-NOTFOUND")
foreach(FIL ${FILES})
get_filename_component(NAME ${FIL} NAME_WE)
@@ -12,14 +10,9 @@ if(NOT "${ASCIIDOCTOR}" STREQUAL "ASCIIDOCTOR-NOTFOUND")
COMMAND ${ASCIIDOCTOR} ${FIL} -b manpage -o - > ${MANPAGE_FILE}
DEPENDS ${FIL})
- add_custom_command(OUTPUT ${GZ_MANPAGE_FILE}
- COMMAND ${GZIP} -c ${MANPAGE_FILE} > ${GZ_MANPAGE_FILE}
- DEPENDS ${MANPAGE_FILE})
-
- list(APPEND GZFILES ${GZ_MANPAGE_FILE})
endforeach()
- add_custom_target(adoc_man DEPENDS ${GZFILES})
- install(FILES ${GZFILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8)
+ add_custom_target(adoc_man DEPENDS ${FILES})
+ install(FILES ${FILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8)
else()
message(WARNING "asciidoctor not found, building without bpftrace manpage")
add_custom_target(adoc_man)
diff --git a/man/man8/CMakeLists.txt b/man/man8/CMakeLists.txt
index 2a316cd9..2207cf80 100644
--- a/man/man8/CMakeLists.txt
+++ b/man/man8/CMakeLists.txt
@@ -1,12 +1,3 @@
-find_program(GZIP gzip REQUIRED)
file(GLOB FILES *.8)
-set(GZFILES "")
-foreach(FIL ${FILES})
- get_filename_component(NAME ${FIL} NAME)
- add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz
- COMMAND ${GZIP} -c ${FIL} > ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz
- DEPENDS ${FIL})
- list(APPEND GZFILES "${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz")
-endforeach()
add_custom_target(man_man DEPENDS ${GZFILES})
-install(FILES ${GZFILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8)
+install(FILES ${FILES} DESTINATION ${CMAKE_INSTALL_MANDIR}/man8)
|