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)