X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4de70d5dec2df0a4a9f0f35bf275238117e3cae1..20862fe41dadbc23c96c578e5a8595203b4bda81:/buildtools/Cmake/Distrib.cmake diff --git a/buildtools/Cmake/Distrib.cmake b/buildtools/Cmake/Distrib.cmake index c5a0c3d286..9951a09213 100644 --- a/buildtools/Cmake/Distrib.cmake +++ b/buildtools/Cmake/Distrib.cmake @@ -15,7 +15,8 @@ install(DIRECTORY "${CMAKE_HOME_DIRECTORY}/doc/html/" ) #### Generate the manpages -if( NOT MANPAGE_DIR ) +if(NOT WIN32) +if( NOT MANPAGE_DIR) set( MANPAGE_DIR ${CMAKE_BINARY_DIR}/manpages ) endif( NOT MANPAGE_DIR) @@ -25,7 +26,9 @@ add_custom_target(manpages ALL COMMENT "Generating manpages" ) install(FILES ${MANPAGE_DIR}/simgrid_update_xml.1 - DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/usr/share/man/man1) + DESTINATION $ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/share/man/man1) + +endif(NOT WIN32) # binaries install(PROGRAMS ${CMAKE_BINARY_DIR}/bin/smpicc @@ -92,12 +95,12 @@ foreach(file ${HEADERS}) endforeach(file ${HEADERS}) # example files -foreach(file ${examples_to_install_in_doc}) +foreach(file ${examples_to_install}) 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}) +endforeach(file ${examples_to_install}) # bindings cruft @@ -135,6 +138,7 @@ COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_INSTALL_PREFIX}/bin/tesh COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_INSTALL_PREFIX}/bin/simgrid-colorizer COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_INSTALL_PREFIX}/bin/simgrid_update_xml COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_INSTALL_PREFIX}/bin/gras_stub_generator +COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_INSTALL_PREFIX}/bin/graphicator COMMAND ${CMAKE_COMMAND} -E echo "uninstall bin ok" COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_INSTALL_PREFIX}/include/amok COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_INSTALL_PREFIX}/include/gras @@ -142,13 +146,17 @@ COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_INSTALL_PREFIX}/include/ins COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_INSTALL_PREFIX}/include/msg COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_INSTALL_PREFIX}/include/simdag COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_INSTALL_PREFIX}/include/smpi +COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_INSTALL_PREFIX}/include/simix COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_INSTALL_PREFIX}/include/surf COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_INSTALL_PREFIX}/include/xbt COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_INSTALL_PREFIX}/include/mc +COMMAND ${CMAKE_COMMAND} -E remove_directory ${CMAKE_INSTALL_PREFIX}/include/simgrid COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_INSTALL_PREFIX}/include/simgrid_config.h COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_INSTALL_PREFIX}/include/gras.h COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_INSTALL_PREFIX}/include/xbt.h COMMAND ${CMAKE_COMMAND} -E echo "uninstall include ok" +COMMAND ${CMAKE_COMMAND} -E remove -f ${CMAKE_INSTALL_PREFIX}/share/man/man1/simgrid_update_xml.1 +COMMAND ${CMAKE_COMMAND} -E echo "uninstall man ok" WORKING_DIRECTORY "${CMAKE_INSTALL_PREFIX}" ) @@ -166,6 +174,49 @@ endif(HAVE_LUA) ## (instead of any cruft laying on my disk as CPack does) ### ################################################################ +# This is the complete list of what will be added to the source archive +set(source_to_pack + ${headers_to_install} + ${source_of_generated_headers} + ${XBT_RL_SRC} + ${EXTRA_DIST} + ${SMPI_SRC} + ${GRAS_RL_SRC} + ${XBT_SRC} + ${GTNETS_SRC} + ${NS3_SRC} + ${SURF_SRC} + ${SIMIX_SRC} + ${TRACING_SRC} + ${MSG_SRC} + ${SIMDAG_SRC} + ${GRAS_COMMON_SRC} + ${GRAS_SG_SRC} + ${AMOK_SRC} + ${LUA_SRC} + ${MC_SRC} + ${JEDULE_SRC} + ${RNGSTREAM_SRC} + ${BINDINGS_FILES} + ${CMAKE_SOURCE_FILES} + ${EXAMPLES_CMAKEFILES_TXT} + ${TESHSUITE_CMAKEFILES_TXT} + ${TOOLS_CMAKEFILES_TXT} + ${TESTSUITE_CMAKEFILES_TXT} + ${DOC_SOURCES} + ${DOC_FIGS} + ${README_files} + ${xml_files} + ${tesh_files} + ${txt_files} + ${bin_files} + ${examples_src} + ${teshsuite_src} + ${tools_src} + ${testsuite_src} + ${PLATFORMS_EXAMPLES} +) + ########################################## ### Fill in the "make dist-dir" target ### ########################################## @@ -206,7 +257,7 @@ foreach(file ${source_to_pack}) add_custom_command( TARGET dist-dir - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/buildtools/Cmake/Makefile.default ${PROJECT_NAME}-${release_version}/Makefile + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_HOME_DIRECTORY}/buildtools/Cmake/Scripts/Makefile.default ${PROJECT_NAME}-${release_version}/Makefile ) endforeach(file ${source_to_pack}) @@ -308,6 +359,13 @@ 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 ### ############################################# @@ -315,15 +373,17 @@ WORKING_DIRECTORY "${CMAKE_HOME_DIRECTORY}" add_custom_target(sync-gforge-doc COMMAND chmod g+rw -R doc/ COMMAND chmod a+rX -R doc/ +COMMAND ssh scm.gforge.inria.fr mkdir /home/groups/simgrid/htdocs/simgrid/${release_version}/ || true 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/${release_version}/doc/ || true -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/${release_version}/ +doc/html/ scm.gforge.inria.fr:/home/groups/simgrid/htdocs/simgrid/${release_version}/doc/ || true +COMMAND scp doc/html/simgrid_modules2.png doc/html/simgrid_modules.png doc/webcruft/simgrid_logo_2011.png doc/webcruft/simgrid_logo_small.png scm.gforge.inria.fr:/home/groups/simgrid/htdocs/simgrid/${release_version}/ WORKING_DIRECTORY "${CMAKE_HOME_DIRECTORY}" ) add_dependencies(sync-gforge-doc simgrid_documentation) add_custom_target(sync-gforge-dtd -COMMAND scp src/surf/simgrid.dtd scm.gforge.inria.fr:/home/groups/simgrid/htdocs/${release_version}/ +COMMAND scp src/surf/simgrid.dtd scm.gforge.inria.fr:/home/groups/simgrid/htdocs/simgrid/${release_version}/simgrid.dtd +COMMAND scp src/surf/simgrid.dtd scm.gforge.inria.fr:/home/groups/simgrid/htdocs/simgrid.dtd WORKING_DIRECTORY "${CMAKE_HOME_DIRECTORY}" )