X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6a5f04303fede6c66ee161297d17a0979a8e691e..a2469b1c6f74e75451f8661195157d36e7235cce:/buildtools/Cmake/Distrib.cmake diff --git a/buildtools/Cmake/Distrib.cmake b/buildtools/Cmake/Distrib.cmake index 8795e1db15..4de52cddb4 100644 --- a/buildtools/Cmake/Distrib.cmake +++ b/buildtools/Cmake/Distrib.cmake @@ -20,17 +20,12 @@ install(PROGRAMS ${CMAKE_BINARY_DIR}/bin/smpicc ${CMAKE_BINARY_DIR}/bin/smpiff ${CMAKE_BINARY_DIR}/bin/smpirun DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/) -if(WIN32) - install(PROGRAMS ${CMAKE_HOME_DIRECTORY}/buildtools/Cmake/tesh.pl - DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ - RENAME tesh) - add_custom_target(tesh - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/buildtools/Cmake/tesh.pl ${CMAKE_BINARY_DIR}/bin/tesh - ) -else(WIN32) - install(PROGRAMS ${CMAKE_BINARY_DIR}/bin/tesh - DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/) -endif(WIN32) + +install(PROGRAMS ${CMAKE_BINARY_DIR}/bin/tesh +DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/) + +install(PROGRAMS ${CMAKE_BINARY_DIR}/bin/graphicator +DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/) install(PROGRAMS ${CMAKE_HOME_DIRECTORY}/tools/MSG_visualization/colorize.pl DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/ @@ -81,25 +76,13 @@ endforeach(file ${install_HEADERS}) # example files foreach(file ${examples_to_install_in_doc}) - string(REPLACE "${CMAKE_HOME_DIRECTORY}/examples/" "" file ${file}) + string(REPLACE "${CMAKE_CURRENT_SOURCE_DIR}/examples/" "" file ${file}) get_filename_component(location ${file} PATH) install(FILES "examples/${file}" DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/doc/simgrid/examples/${location}) endforeach(file ${examples_to_install_in_doc}) -# example README -foreach(file ${README_examples_files}) - string(REPLACE "${CMAKE_HOME_DIRECTORY}/examples/" "" file ${file}) - get_filename_component(location ${file} PATH) - install(FILES "examples/${file}" - DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/doc/simgrid/examples/${location}) -endforeach(file ${README_examples_files}) - # bindings cruft -if(HAVE_JAVA) - install(FILES ${CMAKE_BINARY_DIR}/simgrid.jar - DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/) -endif(HAVE_JAVA) if(HAVE_LUA) file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/lib/lua/5.1") @@ -171,14 +154,6 @@ COMMAND ${CMAKE_COMMAND} -E echo "uninstall include ok" WORKING_DIRECTORY "${CMAKE_INSTALL_PREFIX}" ) -if(HAVE_JAVA) - add_custom_command(TARGET uninstall - COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_INSTALL_PREFIX}/share/simgrid.jar - COMMAND ${CMAKE_COMMAND} -E echo "uninstall binding java ok" - WORKING_DIRECTORY "${CMAKE_HOME_DIRECTORY}/" - ) -endif(HAVE_JAVA) - if(HAVE_LUA) add_custom_command(TARGET uninstall COMMAND ${CMAKE_COMMAND} -E echo "uninstall binding lua ok" @@ -207,7 +182,6 @@ endif(HAVE_RUBY) ### Fill in the "make dist-dir" target ### ########################################## -if(enable_doc) add_custom_target(dist-dir COMMENT "Generating the distribution directory" COMMAND test -e simgrid-${release_version}/ && chmod -R a+w simgrid-${release_version}/ || true @@ -217,12 +191,6 @@ add_custom_target(dist-dir COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_HOME_DIRECTORY}/doc/html/ simgrid-${release_version}/doc/html/ ) add_dependencies(dist-dir simgrid_documentation) -else(enable_doc) -add_custom_target(dist-dir - COMMAND ${CMAKE_COMMAND} -E echo "Please enable the doc to generate the doc" - COMMAND I_said_PLEASE_ENABLE_THE_DOC_GENERATION_BEFORE_BUILDING_AN_ARCHIVE -) -endif(enable_doc) set(dirs_in_tarball "") foreach(file ${source_to_pack}) @@ -246,6 +214,11 @@ foreach(file ${source_to_pack}) TARGET dist-dir COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/${file} simgrid-${release_version}/${file_location}/ ) + + add_custom_command( + TARGET dist-dir + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/buildtools/Cmake/Makefile.default simgrid-${release_version}/Makefile + ) endforeach(file ${source_to_pack}) ###################################### @@ -363,6 +336,7 @@ COMMAND chmod a+rX -R doc/ COMMAND rsync --verbose --cvs-exclude --compress --delete --delete-excluded --rsh=ssh --ignore-times --recursive --links --perms --times --omit-dir-times doc/html/ scm.gforge.inria.fr:/home/groups/simgrid/htdocs/doc/ || true COMMAND scp doc/index.php doc/webcruft/robots.txt scm.gforge.inria.fr:/home/groups/simgrid/htdocs/ COMMAND scp doc/html/simgrid_modules2.png doc/html/simgrid_modules.png doc/webcruft/simgrid_logo.png doc/webcruft/simgrid_logo_small.png scm.gforge.inria.fr:/home/groups/simgrid/htdocs/ +COMMAND scp src/surf/simgrid.dtd scm.gforge.inria.fr:/home/groups/simgrid/htdocs/ WORKING_DIRECTORY "${CMAKE_HOME_DIRECTORY}" )