Skip to content

Commit 302081b

Browse files
danbevBethGriggs
authored andcommitted
build: make lint-addon-docs run only if needed
Currently, the lint-addon-docs targets recipe will always be run. This commit makes lint-addon-docs a phony target and adds a new target named tools/.doclintstamp what will be an actual file, similar to what the lint-cpp target does. PR-URL: #24993 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]>
1 parent d449c36 commit 302081b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -1263,10 +1263,14 @@ tools/.cpplintstamp: $(LINT_CPP_FILES)
12631263
@$(PYTHON) tools/check-imports.py
12641264
@touch $@
12651265

1266-
lint-addon-docs: test/addons/.docbuildstamp
1266+
.PHONY: lint-addon-docs
1267+
lint-addon-docs: tools/.doclintstamp
1268+
1269+
tools/.doclintstamp: test/addons/.docbuildstamp
12671270
@echo "Running C++ linter on addon docs..."
12681271
@$(PYTHON) tools/cpplint.py $(CPPLINT_QUIET) --filter=$(ADDON_DOC_LINT_FLAGS) \
12691272
$(LINT_CPP_ADDON_DOC_FILES_GLOB)
1273+
@touch $@
12701274

12711275
cpplint: lint-cpp
12721276
@echo "Please use lint-cpp instead of cpplint"

0 commit comments

Comments
 (0)