Fix T65942 Eevee: Reflection plane has "show data" checked by default
[blender.git] / GNUmakefile
index 3596073..1c86024 100644 (file)
@@ -123,6 +123,11 @@ Utilities
    * update:
      updates git and all submodules
 
    * update:
      updates git and all submodules
 
+   * format
+     Format source code using clang (uses PATHS if passed in). For example::
+
+        make format PATHS="source/blender/blenlib source/blender/blenkernel"
+
 Environment Variables
 
    * BUILD_CMAKE_ARGS:      Arguments passed to CMake.
 Environment Variables
 
    * BUILD_CMAKE_ARGS:      Arguments passed to CMake.
@@ -223,7 +228,7 @@ endif
 # Allow passing in own BLENDER_BIN so developers who don't
 # use the default build path can still use utility helpers.
 ifeq ($(OS), Darwin)
 # 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"
 endif
 else
        BLENDER_BIN?="$(BUILD_DIR)/bin/blender"
 endif
@@ -403,7 +408,7 @@ test_style_osl_qtc: .FORCE
 #
 
 project_qtcreator: .FORCE
 #
 
 project_qtcreator: .FORCE
-       $(PYTHON) build_files/cmake/cmake_qtcreator_project.py "$(BUILD_DIR)"
+       $(PYTHON) build_files/cmake/cmake_qtcreator_project.py --build-dir "$(BUILD_DIR)"
 
 project_netbeans: .FORCE
        $(PYTHON) build_files/cmake/cmake_netbeans_project.py "$(BUILD_DIR)"
 
 project_netbeans: .FORCE
        $(PYTHON) build_files/cmake/cmake_netbeans_project.py "$(BUILD_DIR)"
@@ -510,6 +515,10 @@ update: .FORCE
        git submodule foreach git checkout master
        git submodule foreach git pull --rebase origin master
 
        git submodule foreach git checkout master
        git submodule foreach git pull --rebase origin master
 
+format: .FORCE
+       PATH="../lib/${OS_NCASE}/llvm/bin/:$(PATH)" \
+               python3 source/tools/utils_maintenance/clang_format_paths.py $(PATHS)
+
 
 # -----------------------------------------------------------------------------
 # Documentation
 
 # -----------------------------------------------------------------------------
 # Documentation