Skip to content

Commit 9693581

Browse files
committed
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.
1 parent f194b7f commit 9693581

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
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)