coreutils

General Software Utilities
git clone http://git.omkov.net/coreutils
Log | Tree | Refs | README | LICENCE | Download

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

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