Skip to content

Commit 5da6006

Browse files
authored
Merge pull request #252 from mgorny/man-fixes
Stop compressing manpage & respect GNUInstallDirs when installing it
2 parents 39b42e4 + 1b1dc56 commit 5da6006

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/stubgenerator/CMakeLists.txt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,9 @@ else()
3939
endif()
4040
#Generate manpage
4141
if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
42-
configure_file("${CMAKE_SOURCE_DIR}/doc/manpage.in" "${CMAKE_BINARY_DIR}/manpage" @ONLY)
43-
add_custom_command(OUTPUT jsonrpcstub.1.gz
44-
COMMAND gzip -c "${CMAKE_BINARY_DIR}/manpage" > ${CMAKE_BINARY_DIR}/jsonrpcstub.1.gz
45-
COMMENT "Generating man pages"
46-
VERBATIM
47-
)
48-
add_custom_target(manpage ALL DEPENDS jsonrpcstub.1.gz)
49-
install(FILES ${CMAKE_BINARY_DIR}/jsonrpcstub.1.gz DESTINATION share/man/man1/)
42+
configure_file("${CMAKE_SOURCE_DIR}/doc/manpage.in" "${CMAKE_BINARY_DIR}/jsonrpcstub.1" @ONLY)
43+
add_custom_target(manpage ALL DEPENDS ${CMAKE_BINARY_DIR}/jsonrpcstub.1)
44+
install(FILES ${CMAKE_BINARY_DIR}/jsonrpcstub.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1/)
5045
add_dependencies(jsonrpcstub manpage)
5146
endif()
5247

0 commit comments

Comments
 (0)