2018-09-07 09:45:11 -04:00
|
|
|
set(MANPAGE "${CURL_BINARY_DIR}/docs/curl.1")
|
2017-02-25 08:40:24 -05:00
|
|
|
|
|
|
|
# Load DPAGES and OTHERPAGES from shared file
|
|
|
|
transform_makefile_inc("Makefile.inc" "${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake")
|
|
|
|
include("${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake")
|
|
|
|
|
|
|
|
add_custom_command(OUTPUT "${MANPAGE}"
|
|
|
|
COMMAND "${PERL_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/gen.pl" mainpage "${CMAKE_CURRENT_SOURCE_DIR}" > "${MANPAGE}"
|
2017-03-30 08:27:51 -04:00
|
|
|
DEPENDS ${DPAGES} ${OTHERPAGES}
|
2017-02-25 08:40:24 -05:00
|
|
|
VERBATIM
|
|
|
|
)
|
|
|
|
add_custom_target(generate-curl.1 DEPENDS "${MANPAGE}")
|