From 05d05e25c2ae8027e84a3149f8def7d57908f6b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Monta=C3=B1ana=20G=C3=B3mez?= Date: Sun, 10 Mar 2024 13:25:55 +0100 Subject: [PATCH] Add make example command --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5a2cf9e..524500f 100644 --- a/Makefile +++ b/Makefile @@ -96,6 +96,14 @@ test: ## Run tests (opt="-s") to verbose output the tests, (opt="-c='Test Maximu done @echo ">>> Done"; +fname = iris +example: ## Build sample + @echo ">>> Building Sample..."; + @cmake --build build_debug -t sample + build_debug/sample/PlatformSample --model BoostAODE --dataset $(fname) --discretize --stratified + @echo ">>> Done"; + + coverage: ## Run tests and generate coverage report (build/index.html) @echo ">>> Building tests with coverage..." @$(MAKE) test @@ -105,7 +113,7 @@ coverage: ## Run tests and generate coverage report (build/index.html) help: ## Show help message @IFS=$$'\n' ; \ - help_lines=(`fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##/:/'`); \ + help_lines=(`grep -Fh "##" $(MAKEFILE_LIST) | grep -Fv fgrep | sed -e 's/\\$$//' | sed -e 's/##/:/'`); \ printf "%s\n\n" "Usage: make [task]"; \ printf "%-20s %s\n" "task" "help" ; \ printf "%-20s %s\n" "------" "----" ; \