blob: 26209615b707acfc3410e0541a83f4e1577b1b5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# this file is for lazy people (loek)
BUILD_DIR ?= build
TARGET ?= $(BUILD_DIR)/main
.PHONY: FORCE
all: FORCE $(TARGET)
$(BUILD_DIR)/build.ninja: CMakeLists.txt
mkdir -p $(BUILD_DIR)
cmake -B $(BUILD_DIR) -G Ninja --fresh --log-level WARNING
$(TARGET): $(BUILD_DIR)/build.ninja FORCE
ninja -C $(BUILD_DIR)
# ninja automatically builds in parallel, so is preferred
clean: FORCE
$(RM) -r $(BUILD_DIR)
|