NPROCS:=$(shell grep -c ^processor /proc/cpuinfo)
endif
ifeq ($(OS), Darwin)
- NPROCS:=$(shell system_profiler | awk '/Number Of CPUs/{print $4}{next;}')
+ NPROCS:=$(shell sysctl -a | grep "hw.ncpu " | cut -d" " -f3)
endif
ifeq ($(OS), FreeBSD)
NPROCS:=$(shell sysctl -a | grep "hw.ncpu " | cut -d" " -f3 )
@echo
@echo Building Blender ...
- cd $(BUILD_DIR) ; make -s -j $(NPROCS)
+ cd $(BUILD_DIR) ; make -s -j $(NPROCS) install
@echo
@echo run blender from "$(BUILD_DIR)/bin/blender"
@echo
package_pacman:
cd build_files/package_spec/pacman ; MAKEFLAGS="-j$(NPROCS)" makepkg --asroot
+package_archive:
+ cd $(BUILD_DIR) ; make -s package_archive
+ @echo archive in "$(BUILD_DIR)/release"
+
# forward build targets
test:
cd $(BUILD_DIR) ; ctest . --output-on-failure