From 2e9687965dd60c7b577c056d20e47b7dd69b8949 Mon Sep 17 00:00:00 2001 From: Ilya Ashikhmin Date: Fri, 3 Jul 2026 19:00:45 +0200 Subject: [PATCH] build: add Makefile wrapping cmake/ctest workflow Co-Authored-By: Claude Opus 4.8 (1M context) --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..35d3c34 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +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)