Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add testall to test.
[simgrid.git] / buildtools / Cmake / src / CMakeDistrib.txt
index dc60a6b..d1bf673 100644 (file)
@@ -45,16 +45,20 @@ set(CMAKE_INSTALL_PREFIX ${prefix} CACHE TYPE INTERNAL FORCE)
 
 string(REPLACE ";" "\t" install_HEADERS "${install_HEADERS}")
 string(REPLACE ";" "\t" install_libs "${install_libs}")
+string(REPLACE "${PROJECT_DIRECTORY}/src/smpi" "${prefix}/bin" uninstall_bins "${install_bins}")
 string(REPLACE "${PROJECT_DIRECTORY}/src/.libs" "${prefix}/lib" uninstall_libs "${install_libs}")
 string(REPLACE "./" "${prefix}/" uninstall_HEADERS "${install_HEADERS}")
 
 add_custom_target(install-simgrid
 COMMAND mkdir -p ${prefix}
+COMMAND mkdir -p ${prefix}/bin
 COMMAND mkdir -p ${prefix}/lib
 COMMAND mkdir -p ${prefix}/include
 COMMAND mkdir -p ${prefix}/doc
 COMMAND mkdir -p ${prefix}/doc/simgrid
 COMMAND mkdir -p ${prefix}/doc/simgrid/html
+COMMAND cp ${install_bins} ${prefix}/bin
+COMMAND echo "install bin ok"
 COMMAND cp ${install_libs} ${prefix}/lib
 COMMAND echo "install lib ok"
 COMMAND cp -rf ${PROJECT_DIRECTORY}/doc/html/ ${prefix}/doc/simgrid
@@ -70,6 +74,8 @@ COMMAND rm -rf ${prefix}/doc/simgrid
 COMMAND echo "uninstall doc ok"
 COMMAND rm ${uninstall_libs}
 COMMAND echo "uninstall lib ok"
+COMMAND rm ${uninstall_bins}
+COMMAND echo "uninstall bin ok"
 COMMAND rm ${uninstall_HEADERS}
 COMMAND echo "uninstal include ok"
 COMMAND rm -R ${prefix}/include/amok ${prefix}/include/gras ${prefix}/include/instr ${prefix}/include/msg 
@@ -104,4 +110,83 @@ COMMAND rm -rf ${PROJECT_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}
 WORKING_DIRECTORY "${PROJECT_DIRECTORY}"
 )
 
+add_custom_target(maintainer-clean
+COMMAND rm -f src/config_unit.c
+COMMAND rm -f src/cunit_unit.c
+COMMAND rm -f src/dict_unit.c
+COMMAND rm -f src/dynar_unit.c
+COMMAND rm -f src/ex_unit.c
+COMMAND rm -f src/set_unit.c
+COMMAND rm -f src/simgrid_units_main.c
+COMMAND rm -f src/swag_unit.c
+COMMAND rm -f src/xbt_sha_unit.c
+COMMAND rm -f src/xbt_str_unit.c
+COMMAND rm -f src/xbt_strbuff_unit.c
+COMMAND rm -f src/xbt_synchro_unit.c
+WORKING_DIRECTORY "${PROJECT_DIRECTORY}"
+)
+
+add_custom_target(supernovae-clean
+COMMAND rm -f src/supernovae_gras.c
+COMMAND rm -f src/supernovae_sg.c
+COMMAND rm -f src/supernovae_smpi.c
+WORKING_DIRECTORY "${PROJECT_DIRECTORY}"
+)
+
+add_custom_target(doc-clean
+COMMAND rm -f doc/all_bib.html
+COMMAND rm -f doc/all_bib.latin1.html
+COMMAND rm -f doc/all_bib.latin1.html.tmp
+COMMAND rm -f doc/logcategories.sh
+COMMAND rm -f doc/publis_core.bib
+COMMAND rm -f doc/publis_core_bib.html
+COMMAND rm -f doc/publis_core_bib.latin1.html
+COMMAND rm -f doc/publis_core_bib.latin1.html.tmp
+COMMAND rm -f doc/publis_count.html
+COMMAND rm -f doc/publis_extern.bib
+COMMAND rm -f doc/publis_extern_bib.html
+COMMAND rm -f doc/publis_extern_bib.latin1.html
+COMMAND rm -f doc/publis_extern_bib.latin1.html.tmp
+COMMAND rm -f doc/publis_intra.bib
+COMMAND rm -f doc/publis_intra_bib.html
+COMMAND rm -f doc/publis_intra_bib.latin1.html
+COMMAND rm -f doc/publis_intra_bib.latin1.html.tmp
+COMMAND rm -f doc/tmp.realtoc
+COMMAND rm -f doc/using_bib.html
+COMMAND rm -f doc/using_bib.latin1.html
+COMMAND rm -f doc/using_bib.latin1.html.tmp
+COMMAND rm -f doc/realtoc.sh
+WORKING_DIRECTORY "${PROJECT_DIRECTORY}"
+)
+
+add_custom_target(java-clean
+COMMAND rm -f src/simgrid.jar
+COMMAND rm -rf src/.classes
+COMMAND rm -f examples/java/basic/BasicTest.class
+COMMAND rm -f examples/java/basic/FinalizeTask.class
+COMMAND rm -f examples/java/basic/Forwarder.class
+COMMAND rm -f examples/java/basic/Master.class
+COMMAND rm -f examples/java/basic/Slave.class
+COMMAND rm -f examples/java/comm_time/CommTimeTest.class
+COMMAND rm -f examples/java/comm_time/FinalizeTask.class
+COMMAND rm -f examples/java/comm_time/Master.class
+COMMAND rm -f examples/java/comm_time/Slave.class
+COMMAND rm -f examples/java/ping_pong/PingPongTask.class
+COMMAND rm -f examples/java/ping_pong/PingPongTest.class
+COMMAND rm -f examples/java/ping_pong/Receiver.class
+COMMAND rm -f examples/java/ping_pong/Sender.class
+COMMAND rm -f examples/java/suspend/DreamMaster.class
+COMMAND rm -f examples/java/suspend/LazyGuy.class
+COMMAND rm -f examples/java/suspend/SuspendTest.class
+WORKING_DIRECTORY "${PROJECT_DIRECTORY}"
+)
+
+add_custom_target(all-clean
+COMMAND make clean
+COMMAND make java-clean
+COMMAND make doc-clean
+COMMAND make supernovae-clean
+COMMAND make maintainer-clean
+WORKING_DIRECTORY "${PROJECT_DIRECTORY}"
+)
 include(CPack)