-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (22 loc) · 754 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (22 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.PHONY: help build release test docker-build docker-up
.DEFAULT_GOAL := help
BUILD_DIR := build
help:
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' ${MAKEFILE_LIST} | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
debug_git_tag:
$(eval ver = $(shell git describe --dirty --all | cut -d / -f 2))
release_git_tag:
$(eval ver = $(shell git describe --dirty --tags))
build: ## debug build
cmake -S . -B $(BUILD_DIR) -DCMAKE_BUILD_TYPE=Debug
cmake --build $(BUILD_DIR)
release: ## release build
@cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
test: ## run unit test
@./test.sh
validate: ## circleci config validate
@circleci config validate
docker-build:
@docker-compose build
docker-up:
@docker-compose up -d