BUILD_DIR := build BUILD_TYPE ?= Debug .PHONY: all configure build run test clean world-editor all: build configure: @cmake -S . -B $(BUILD_DIR) -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) build: configure @cmake --build $(BUILD_DIR) --target factory-hole-app -j$$(nproc) run: build @$(BUILD_DIR)/factory-hole-app test: configure @cmake --build $(BUILD_DIR) --target factory-hole-tests -j$$(nproc) @cd $(BUILD_DIR) && ctest --output-on-failure world-editor: configure @cmake --build $(BUILD_DIR) --target node-editor -j$$(nproc) @$(BUILD_DIR)/tools/node-editor/node-editor clean: @rm -rf $(BUILD_DIR)