X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0213e3927d6ac21f3089d8a2d60f3603c8cbac43..4de70d5dec2df0a4a9f0f35bf275238117e3cae1:/buildtools/Cmake/Distrib.cmake diff --git a/buildtools/Cmake/Distrib.cmake b/buildtools/Cmake/Distrib.cmake index 3f0730849f..c5a0c3d286 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 + COMMAND pod2man ${CMAKE_HOME_DIRECTORY}/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 @@ -306,13 +308,6 @@ COMMAND ${CMAKE_COMMAND} -E remove -f src/xbt_synchro_unit.c WORKING_DIRECTORY "${CMAKE_HOME_DIRECTORY}" ) -add_custom_target(supernovae-clean -COMMAND ${CMAKE_COMMAND} -E remove -f src/supernovae_gras.c -COMMAND ${CMAKE_COMMAND} -E remove -f src/supernovae_sg.c -COMMAND ${CMAKE_COMMAND} -E remove -f src/supernovae_smpi.c -WORKING_DIRECTORY "${CMAKE_HOME_DIRECTORY}" -) - ############################################# ### Fill in the "make sync-gforge" target ### #############################################