mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-18 18:56:24 +00:00
auto-set -j option in makefile, and split out cmake setup rule
This commit is contained in:
parent
b14a59629c
commit
b34218c8c2
7
Makefile
7
Makefile
@ -5,8 +5,11 @@ CMAKE_OPTS := -DCMAKE_BUILD_TYPE=Release
|
||||
|
||||
.PHONY: all
|
||||
|
||||
all:
|
||||
mkdir -p ${BUILDDIR} && cd ${BUILDDIR} && cmake .. ${CMAKE_OPTS} && $(MAKE) -j$(shell getconf _NPROCESSORS_ONLN)
|
||||
all: setup
|
||||
cd ${BUILDDIR} && $(MAKE) -j$(shell getconf _NPROCESSORS_ONLN)
|
||||
|
||||
setup:
|
||||
mkdir -p ${BUILDDIR} && cd ${BUILDDIR} && cmake .. ${CMAKE_OPTS}
|
||||
|
||||
clean:
|
||||
rm -rf ${BUILDDIR}
|
||||
|
Loading…
Reference in New Issue
Block a user