[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [41050] trunk/blender/GNUmakefile: allow passing BUILD_DIR to convenience makefile as an argument incase you dont want to build in the default path .

Campbell Barton ideasman42 at gmail.com
Sun Oct 16 15:10:14 CEST 2011


Revision: 41050
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41050
Author:   campbellbarton
Date:     2011-10-16 13:10:14 +0000 (Sun, 16 Oct 2011)
Log Message:
-----------
allow passing BUILD_DIR to convenience makefile as an argument incase you dont want to build in the default path.

Modified Paths:
--------------
    trunk/blender/GNUmakefile

Modified: trunk/blender/GNUmakefile
===================================================================
--- trunk/blender/GNUmakefile	2011-10-16 12:25:42 UTC (rev 41049)
+++ trunk/blender/GNUmakefile	2011-10-16 13:10:14 UTC (rev 41050)
@@ -34,11 +34,14 @@
 
 # Source and Build DIR's
 BLENDER_DIR:=$(shell pwd -P)
-BUILD_DIR:=$(shell dirname $(BLENDER_DIR))/build/$(OS_NCASE)
 BUILD_TYPE:=Release
 BUILD_CMAKE_ARGS:=
 
+ifndef BUILD_DIR
+	BUILD_DIR:=$(shell dirname $(BLENDER_DIR))/build/$(OS_NCASE)
+endif
 
+
 # -----------------------------------------------------------------------------
 # additional targets for the build configuration
 
@@ -120,6 +123,9 @@
 	@echo "  * headless  - build without an interface (renderfarm or server automation)"
 	@echo "  * bpy       - build as a python module which can be loaded from python directly"
 	@echo ""
+	@echo "  Note, passing the argument 'BUILD_DIR=path' when calling make will override the default build dir."
+	@echo ""
+	@echo ""
 	@echo "Project Files for IDE's"
 	@echo "  * project_qtcreator - QtCreator Project Files"
 	@echo "  * project_netbeans  - NetBeans Project Files"
@@ -130,9 +136,8 @@
 	@echo "  * package_pacman  - build an arch linux pacmanpackage"
 	@echo "  * package_archive - build an archive package"
 	@echo ""
-	@echo "Other Targets"
+	@echo "Other Targets (not assosiated with building blender)"
 	@echo "  * translations  - update blenders translation files in po/"
-	# TODO, doxygen and sphinx docs
 	@echo ""
 	@echo "Testing Targets (not assosiated with building blender)"
 	@echo "  * test            - run ctest, currently tests import/export, operator execution and that python modules load"
@@ -145,7 +150,7 @@
 	@echo "  * check_splint    - run blenders source through splint (C only)"
 	@echo "  * check_sparse    - run blenders source through sparse (C only)"
 	@echo ""
-	@echo "Documentation Targets"
+	@echo "Documentation Targets (not assosiated with building blender)"
 	@echo "  * doc_py   - generate sphinx python api docs"
 	@echo "  * doc_dna  - generate blender file format reference"
 	@echo "  * doc_man  - generate manpage"




More information about the Bf-blender-cvs mailing list