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 892b83b commit f08f698Copy full SHA for f08f698
Makefile
@@ -0,0 +1,14 @@
1
+NUM_PROC=$(shell nproc)
2
+
3
+SOURCE_DIR := $(PWD)
4
+BUILD_DIR ?= build
5
6
+.PHONY: all clean $(MAKECMDGOALS)
7
8
+${BUILD_DIR}/Makefile:
9
+ mkdir -p ${BUILD_DIR}
10
+ cd ${BUILD_DIR} && cmake ${SOURCE_DIR}
11
12
+all $(MAKECMDGOALS): $(BUILD_DIR)/Makefile
13
+ $(MAKE) -k -j${NUM_PROC} -C $(BUILD_DIR) $(MAKECMDGOALS) \
14
+ || $(MAKE) -j1 -C $(BUILD_DIR) $(MAKECMDGOALS)
0 commit comments