Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--GNUmakefile7
-rw-r--r--source/creator/CMakeLists.txt1
2 files changed, 6 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 265826f3125..e8571064883 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -48,11 +48,14 @@ endif
# Get the number of cores for threaded build
NPROCS:=1
+DEFAULT_TARGET=install
ifeq ($(OS), Linux)
NPROCS:=$(shell grep -c ^processor /proc/cpuinfo)
endif
ifeq ($(OS), Darwin)
- NPROCS:=$(shell system_profiler | awk '/Number Of CPUs/{print $4}{next;}')
+ NPROCS:=$(shell system_profiler SPHardwareDataType | awk '/Total Number Of Cores/ {print $5}{next;};')
+ # make install not support on mac yet
+ DEFAULT_TARGET=
endif
ifeq ($(OS), FreeBSD)
NPROCS:=$(shell sysctl -a | grep "hw.ncpu " | cut -d" " -f3 )
@@ -75,7 +78,7 @@ all:
@echo
@echo Building Blender ...
- cd $(BUILD_DIR) ; make -s -j $(NPROCS) install
+ cd $(BUILD_DIR) ; make -s -j $(NPROCS) ${DEFAULT_TARGET}
@echo
@echo run blender from "$(BUILD_DIR)/bin/blender"
@echo
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 436d2f41749..561f28a6154 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -529,6 +529,7 @@ if(WITH_INSTALL)
elseif(APPLE)
# TODO, APPLE needs a 'make install' target like win32 and unix
+ # also update GNUmakefile to run make install if you do this
set(SOURCEDIR ${CMAKE_SOURCE_DIR}/source/darwin/blender.app)
set(SOURCEINFO ${SOURCEDIR}/Contents/Info.plist)