From 9978485e8207d1f842f16864bda4260c8fc1335a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 6 Sep 2020 01:36:34 +1000 Subject: Makefile: update spell checking targets Update check_spelling targets to match changes to the utility, take an optional CHECK_SPELLING_CACHE argument. --- GNUmakefile | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 9a5164cd722..ffde7885301 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -81,11 +81,19 @@ Static Source Code Checking * check_splint: Run blenders source through splint (C only). * check_sparse: Run blenders source through sparse (C only). * check_smatch: Run blenders source through smatch (C only). - * check_spelling_c: Check for spelling errors (C/C++ only). - * check_spelling_c_qtc: Same as check_spelling_c but outputs QtCreator tasks format. + * check_descriptions: Check for duplicate/invalid descriptions. + +Spell Checkers + + * check_spelling_c: Check for spelling errors (C/C++ only), * check_spelling_osl: Check for spelling errors (OSL only). * check_spelling_py: Check for spelling errors (Python only). - * check_descriptions: Check for duplicate/invalid descriptions. + + Note that spell checkers can tak a 'CHECK_SPELLING_CACHE' filepath argument, + so re-running does not need to re-check unchanged files. + + Example: + make check_spelling_c CHECK_SPELLING_CACHE=../spelling_cache.data Utilities Not associated with building Blender. @@ -457,26 +465,17 @@ check_spelling_c: .FORCE cd "$(BUILD_DIR)" ; \ PYTHONIOENCODING=utf_8 $(PYTHON) \ "$(BLENDER_DIR)/source/tools/check_source/check_spelling.py" \ + --cache-file=$(CHECK_SPELLING_CACHE) \ "$(BLENDER_DIR)/source" \ "$(BLENDER_DIR)/intern/cycles" \ "$(BLENDER_DIR)/intern/guardedalloc" \ "$(BLENDER_DIR)/intern/ghost" \ -check_spelling_c_qtc: .FORCE - cd "$(BUILD_DIR)" ; USE_QTC_TASK=1 \ - PYTHONIOENCODING=utf_8 $(PYTHON) \ - "$(BLENDER_DIR)/source/tools/check_source/check_spelling.py" \ - "$(BLENDER_DIR)/source" \ - "$(BLENDER_DIR)/intern/cycles" \ - "$(BLENDER_DIR)/intern/guardedalloc" \ - "$(BLENDER_DIR)/intern/ghost" \ - > \ - "$(BLENDER_DIR)/check_spelling_c.tasks" - check_spelling_osl: .FORCE cd "$(BUILD_DIR)" ;\ PYTHONIOENCODING=utf_8 $(PYTHON) \ "$(BLENDER_DIR)/source/tools/check_source/check_spelling.py" \ + --cache-file=$(CHECK_SPELLING_CACHE) \ "$(BLENDER_DIR)/intern/cycles/kernel/shaders" check_descriptions: .FORCE -- cgit v1.2.3