mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
build,test: fix build-addons dependency chain
* Make the 'extract embedded addons in the documentations' step a normal prerequisite. As an order-only prerequisite, it's sometimes skipped when it shouldn't be. * Make `tools/doc/addon-verify.js` a dependency of that step. Changes to that file should result in a rebuild. PR-URL: https://github.com/nodejs/node/pull/6652 Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
1 parent
b869cdb876
commit
ea20796e9d
1 file changed
+3
-3
@@ -128,9 +128,9 @@ test/gc/node_modules/weak/build/Release/weakref.node: $(NODE_EXE)
|
||||
--nodedir="$(shell pwd)"
|
||||
|
||||
# Implicitly depends on $(NODE_EXE), see the build-addons rule for rationale.
|
||||
test/addons/.docbuildstamp: doc/api/addons.md
|
||||
test/addons/.docbuildstamp: tools/doc/addon-verify.js doc/api/addons.md
|
||||
$(RM) -r test/addons/??_*/
|
||||
$(NODE) tools/doc/addon-verify.js
|
||||
$(NODE) $<
|
||||
touch $@
|
||||
|
||||
ADDONS_BINDING_GYPS := \
|
||||
@@ -138,7 +138,7 @@ ADDONS_BINDING_GYPS := \
|
||||
$(wildcard test/addons/*/binding.gyp))
|
||||
|
||||
# Implicitly depends on $(NODE_EXE), see the build-addons rule for rationale.
|
||||
test/addons/.buildstamp: $(ADDONS_BINDING_GYPS) | test/addons/.docbuildstamp
|
||||
test/addons/.buildstamp: $(ADDONS_BINDING_GYPS) test/addons/.docbuildstamp
|
||||
# Cannot use $(wildcard test/addons/*/) here, it's evaluated before
|
||||
# embedded addons have been generated from the documentation.
|
||||
for dirname in test/addons/*/; do \
|
||||
|
||||
Reference in new issue
Block a user