We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94eb3d7 commit 48de2c9Copy full SHA for 48de2c9
1 file changed
Makefile
@@ -0,0 +1,17 @@
1
+CONFIG ?= Release
2
+BUILD_DIR := build
3
+BUILD_MAKE := $(BUILD_DIR)/Makefile
4
+
5
+.PHONY: all configure build clean
6
+all: build
7
8
+$(BUILD_MAKE):
9
+ cmake -S . -Bbuild -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=$(CONFIG) -DCMAKE_COLOR_DIAGNOSTICS=ON
10
11
+configure: $(BUILD_MAKE)
12
13
+build: configure
14
+ cmake --build build --config $(CONFIG) -j$(shell nproc)
15
16
+clean:
17
+ rm -rf $(BUILD_DIR)
0 commit comments