blob: aa4f0045d1ff0b0fbfb596d94d8030d9f048c8f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
.PHONY: all configure build ark cross world run install clean distclean
BUILD_DIR ?= build
BUILD_TYPE ?= Debug
PREFIX ?= $(HOME)/.local
all: build
configure:
cmake -S . -B $(BUILD_DIR) -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) $(CMAKE_ARGS)
build: configure
cmake --build $(BUILD_DIR)
ark: configure
cmake --build $(BUILD_DIR) --target ark
cross: configure
cmake --build $(BUILD_DIR) --target cross
world: configure
cmake --build $(BUILD_DIR) --target world_build
run: configure
cmake --build $(BUILD_DIR) --target run
install: configure
cmake --install $(BUILD_DIR) --prefix $(PREFIX)
clean:
cmake --build $(BUILD_DIR) --target clean
distclean:
rm -rf $(BUILD_DIR)
|