From 4e4b6e67f4bfc32decf9386da1e99e9a701ccd79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Montan=CC=83ana?= Date: Wed, 18 Sep 2024 11:05:19 +0200 Subject: [PATCH] Add env parallel variable to Makefile --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 6416950..80fc852 100644 --- a/Makefile +++ b/Makefile @@ -58,10 +58,10 @@ diagrams: ## Create an UML class diagram & depnendency of the project (diagrams/ @$(dot) -Tsvg $(f_debug)/dependency.dot.BayesNet -o $(f_diagrams)/dependency.svg buildd: ## Build the debug targets - cmake --build $(f_debug) -t $(app_targets) --parallel + cmake --build $(f_debug) -t $(app_targets) --parallel $(CMAKE_BUILD_PARALLEL_LEVEL) buildr: ## Build the release targets - cmake --build $(f_release) -t $(app_targets) --parallel + cmake --build $(f_release) -t $(app_targets) --parallel $(CMAKE_BUILD_PARALLEL_LEVEL) clean: ## Clean the tests info @echo ">>> Cleaning Debug BayesNet tests..."; @@ -105,7 +105,7 @@ opt = "" test: ## Run tests (opt="-s") to verbose output the tests, (opt="-c='Test Maximum Spanning Tree'") to run only that section @echo ">>> Running BayesNet tests..."; @$(MAKE) clean - @cmake --build $(f_debug) -t $(test_targets) --parallel + @cmake --build $(f_debug) -t $(test_targets) --parallel $(CMAKE_BUILD_PARALLEL_LEVEL) @for t in $(test_targets); do \ echo ">>> Running $$t...";\ if [ -f $(f_debug)/tests/$$t ]; then \