Makefile: use BLENDER_BIN variable if passed in
authorCampbell Barton <ideasman42@gmail.com>
Wed, 27 Feb 2019 23:33:58 +0000 (10:33 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 27 Feb 2019 23:35:38 +0000 (10:35 +1100)
When the default build path isn't used,
it's still handy to be able to run utility commands.

GNUmakefile

index b434787..afd1a48 100644 (file)
@@ -212,10 +212,12 @@ endif
 # -----------------------------------------------------------------------------
 # Blender binary path
 
+# Allow passing in own BLENDER_BIN so developers who don't
+# use the default build path can still use utility helpers.
 ifeq ($(OS), Darwin)
-       BLENDER_BIN="$(BUILD_DIR)/bin/blender.app/Contents/MacOS/blender"
+       BLENDER_BIN?="$(BUILD_DIR)/bin/blender.app/Contents/MacOS/blender"
 else
-       BLENDER_BIN="$(BUILD_DIR)/bin/blender"
+       BLENDER_BIN?="$(BUILD_DIR)/bin/blender"
 endif