From: Martin Quinson Date: Tue, 1 Nov 2011 18:15:10 +0000 (+0100) Subject: do build and install the manpages X-Git-Tag: exp_20120216~534 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/34f8d99cf2e645bb6be3f614f6749145e1f1205e do build and install the manpages --- diff --git a/buildtools/Cmake/Distrib.cmake b/buildtools/Cmake/Distrib.cmake index 42b903239d..4477a109c4 100644 --- a/buildtools/Cmake/Distrib.cmake +++ b/buildtools/Cmake/Distrib.cmake @@ -16,14 +16,16 @@ install(DIRECTORY "${CMAKE_HOME_DIRECTORY}/doc/html/" #### Generate the manpages if( NOT MANPAGE_DIR ) - set( MANPAGE_DIR $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/man/share/man/man1 ) + set( MANPAGE_DIR ${CMAKE_BINARY_DIR}/manpages ) endif( NOT MANPAGE_DIR) -add_custom_target(TARGET install +add_custom_target(manpages ALL COMMAND ${CMAKE_COMMAND} -E make_directory ${MANPAGE_DIR} COMMAND pod2man tools/simgrid_update_xml.pl > ${MANPAGE_DIR}/simgrid_update_xml.1 COMMENT "Generating manpages" ) +install(FILES ${MANPAGE_DIR}/simgrid_update_xml.1 + DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/usr/share/man/man1) # binaries install(PROGRAMS ${CMAKE_BINARY_DIR}/bin/smpicc