From 5d066dea8dfc82fd1ee531937310134b4946d77f Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 18 Jul 2023 10:37:07 +0200 Subject: [PATCH] add a make target named 'examples' that is easier to remember than 'tests' vs 'test' --- CMakeLists.txt | 2 ++ docs/source/Installing_SimGrid.rst | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 545604e129..1a4a2459c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/docs/source/Installing_SimGrid.rst b/docs/source/Installing_SimGrid.rst index 7cd24049a8..477b53ed9a 100644 --- a/docs/source/Installing_SimGrid.rst +++ b/docs/source/Installing_SimGrid.rst @@ -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 -- 2.20.1