Refactor into library

This commit is contained in:
2023-11-10 11:24:27 +01:00
parent 55286168cb
commit 74fb0968c7
5 changed files with 7 additions and 24 deletions

View File

@@ -4,8 +4,8 @@ SHELL := /bin/bash
f_release = build_release
f_debug = build_debug
app_targets = main
test_targets = unit_tests_bayesnet unit_tests_platform
app_targets = example
test_targets = unit_tests_pywrap
n_procs = -j 16
define ClearTests
@@ -31,21 +31,6 @@ setup: ## Install dependencies for tests and coverage
pip install gcovr; \
fi
dest ?= ${HOME}/bin
install: ## Copy binary files to bin folder
@echo "Destination folder: $(dest)"
make buildr
@echo ">>> Copying files to $(dest)"
@cp $(f_release)/src/Platform/b_main $(dest)
@cp $(f_release)/src/Platform/b_list $(dest)
@cp $(f_release)/src/Platform/b_manage $(dest)
@cp $(f_release)/src/Platform/b_best $(dest)
dependency: ## Create a dependency graph diagram of the project (build/dependency.png)
@echo ">>> Creating dependency graph diagram of the project...";
$(MAKE) debug
cd $(f_debug) && cmake .. --graphviz=dependency.dot && dot -Tpng dependency.dot -o dependency.png
buildd: ## Build the debug targets
cmake --build $(f_debug) -t $(app_targets) $(n_procs)