OBFI

Brainfuck Interpreter
git clone http://git.omkov.net/OBFI
Log | Tree | Refs | README | LICENCE | Download

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

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