Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add a make target named 'examples' that is easier to remember than 'tests' vs 'test'
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Tue, 18 Jul 2023 08:37:07 +0000 (10:37 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Tue, 18 Jul 2023 08:37:13 +0000 (10:37 +0200)
CMakeLists.txt
docs/source/Installing_SimGrid.rst

index 545604e..1a4a245 100644 (file)
@@ -757,6 +757,8 @@ add_custom_target(tests-mc COMMENT "Recompiling the MC tests and tools.")
 add_dependencies(tests tests-mc)
 add_custom_target(tests-ns3 COMMENT "Recompiling the ns3 tests and tools.")
 add_dependencies(tests tests-ns3)
+add_custom_target(examples COMMENT "Recompiling all examples")
+add_dependencies(examples tests)
 
 ### Build some Maintainer files
 include(${CMAKE_HOME_DIRECTORY}/tools/cmake/MaintainerMode.cmake)
index 7cd2404..477b53e 100644 (file)
@@ -325,7 +325,7 @@ existing targets are not really for public consumption so don't worry
 if some do not work for you.
 
 - **make**: Build the core of SimGrid that gets installed, but not any example.
-- **make tests**: Build the tests and examples.
+- **make examples**: Build the examples, which are needed by the tests.
 - **make simgrid**: Build only the SimGrid library. Not any example nor the helper tools.
 - **make s4u-comm-pingpong**: Build only this example (works for any example)
 - **make python-bindings**: Build the Python bindings