Ilya Ashikhmin 2e9687965d build: add Makefile wrapping cmake/ctest workflow
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-03 19:00:45 +02:00

25 lines
362 B
Makefile

BUILD_DIR ?= build
BIN := $(BUILD_DIR)/src/pipediagram
.PHONY: all configure build run sample test clean
all: build
configure:
cmake -S . -B $(BUILD_DIR) -G Ninja
build: configure
cmake --build $(BUILD_DIR)
run: build
./$(BIN)
sample: build
./$(BIN) --sample
test: build
ctest --test-dir $(BUILD_DIR) --output-on-failure
clean:
rm -rf $(BUILD_DIR)