ESH

Executive Shell
git clone http://git.omkov.net/ESH
Log | Tree | Refs | README | Download

ESH/Makefile (14 lines, 408 B) -rw-r--r-- file download

0811e1a Jakob Wakeling 2023-12-27 01:07:47
0
.PHONY: all build test help
0811e1a Jakob Wakeling 2023-12-27 01:07:47
1
all: help
0811e1a Jakob Wakeling 2023-12-27 01:07:47
2
0811e1a Jakob Wakeling 2023-12-27 01:07:47
3
build: ## Build the project
0811e1a Jakob Wakeling 2023-12-27 01:07:47
4
	@cmake -S . -B ./build -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=1
0811e1a Jakob Wakeling 2023-12-27 01:07:47
5
	@cmake --build ./build
0811e1a Jakob Wakeling 2023-12-27 01:07:47
6
0811e1a Jakob Wakeling 2023-12-27 01:07:47
7
test: build ## Run unit tests
0811e1a Jakob Wakeling 2023-12-27 01:07:47
8
	@(cd ./build && ctest)
0811e1a Jakob Wakeling 2023-12-27 01:07:47
9
0811e1a Jakob Wakeling 2023-12-27 01:07:47
10
help: ## Display help information
0811e1a Jakob Wakeling 2023-12-27 01:07:47
11
	@grep -E '^[a-zA-Z_-]+:.*?##.*$$' $(MAKEFILE_LIST) | \
0811e1a Jakob Wakeling 2023-12-27 01:07:47
12
		awk 'BEGIN {FS = ":.*?## *"}; {printf "\033[36m%-6s\033[0m %s\n", $$1, $$2}'
13