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: https://github.com/nodejs/node/pull/24993 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
This commit is contained in:
parent
c9a7088bd8
commit
e7c3a1b40a
6
Makefile
6
Makefile
@ -1263,10 +1263,14 @@ tools/.cpplintstamp: $(LINT_CPP_FILES)
|
|||||||
@$(PYTHON) tools/check-imports.py
|
@$(PYTHON) tools/check-imports.py
|
||||||
@touch $@
|
@touch $@
|
||||||
|
|
||||||
lint-addon-docs: test/addons/.docbuildstamp
|
.PHONY: lint-addon-docs
|
||||||
|
lint-addon-docs: tools/.doclintstamp
|
||||||
|
|
||||||
|
tools/.doclintstamp: test/addons/.docbuildstamp
|
||||||
@echo "Running C++ linter on addon docs..."
|
@echo "Running C++ linter on addon docs..."
|
||||||
@$(PYTHON) tools/cpplint.py $(CPPLINT_QUIET) --filter=$(ADDON_DOC_LINT_FLAGS) \
|
@$(PYTHON) tools/cpplint.py $(CPPLINT_QUIET) --filter=$(ADDON_DOC_LINT_FLAGS) \
|
||||||
$(LINT_CPP_ADDON_DOC_FILES_GLOB)
|
$(LINT_CPP_ADDON_DOC_FILES_GLOB)
|
||||||
|
@touch $@
|
||||||
|
|
||||||
cpplint: lint-cpp
|
cpplint: lint-cpp
|
||||||
@echo "Please use lint-cpp instead of cpplint"
|
@echo "Please use lint-cpp instead of cpplint"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user