Make man page optional

This commit is contained in:
2025-08-05 23:32:35 +02:00
parent b726d5ba75
commit 4b9e2aa96a
2 changed files with 3 additions and 2 deletions

View File

@@ -42,7 +42,9 @@ add_custom_target(
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT "Generating version header" COMMENT "Generating version header"
) )
add_subdirectory(man)
add_subdirectory(man)
add_custom_target(schema-header DEPENDS "${GEN_HEADER_PATH}/schema-blob.h") add_custom_target(schema-header DEPENDS "${GEN_HEADER_PATH}/schema-blob.h")
add_custom_command( add_custom_command(

View File

@@ -1,7 +1,6 @@
set (MAN_PAGE_NAME "patchelfcrc.1.gz") set (MAN_PAGE_NAME "patchelfcrc.1.gz")
add_custom_target(man-page add_custom_target(man-page
ALL
DEPENDS DEPENDS
${CMAKE_CURRENT_BINARY_DIR}/${MAN_PAGE_NAME} ${CMAKE_CURRENT_BINARY_DIR}/${MAN_PAGE_NAME}
) )