BUILD_DIR ?= build .PHONY: build configure package install clean configure: cmake -S . -B $(BUILD_DIR) build: configure cmake --build $(BUILD_DIR) package: build cmake --build $(BUILD_DIR) --target package install: build cmake --build $(BUILD_DIR) --target install clean: cmake -E rm -rf $(BUILD_DIR)