Sound: Fix for being unable to jump to a frame during playback with A/V sync
[blender.git] / GNUmakefile
index 359607338589057fe00ac24ccd49fcb073e10e45..821b2f5ef7d21dc9fca3f750bc5c2e0fb9bf0ea1 100644 (file)
@@ -123,6 +123,11 @@ Utilities
    * 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.
@@ -510,6 +515,10 @@ update: .FORCE
        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