1set(MANPAGE "${CURL_BINARY_DIR}/docs/curl.1") 2 3# Load DPAGES and OTHERPAGES from shared file 4transform_makefile_inc("Makefile.inc" "${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake") 5include("${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake") 6 7add_custom_command(OUTPUT "${MANPAGE}" 8 COMMAND "${PERL_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/gen.pl" mainpage "${CMAKE_CURRENT_SOURCE_DIR}" > "${MANPAGE}" 9 DEPENDS ${DPAGES} ${OTHERPAGES} 10 VERBATIM 11) 12add_custom_target(generate-curl.1 DEPENDS "${MANPAGE}") 13