Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
build: create separate rebuild-doc-addons target
this allows the build-addons target to "see" the
directories that verify-addons.js is creating, which
prevents errors in downstream targets on clean test runs.
  • Loading branch information
chrisdickinson committed Jan 13, 2015
commit 55dd35b092fb31e9c09af4a011735d2c6e1ca4d2
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,11 @@ test/gc/node_modules/weak/build/Release/weakref.node: $(NODE_EXE)
--directory="$(shell pwd)/test/gc/node_modules/weak" \
--nodedir="$(shell pwd)"

build-addons: $(NODE_EXE)
rebuild-doc-addons: $(NODE_EXE)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, build-addons would take dependencies on the gyp and .cc files so that it only runs when something has changed.

rm -rf test/addons/doc-*/
./$(NODE_EXE) tools/doc/addon-verify.js

build-addons: rebuild-doc-addons
$(foreach dir, \
$(sort $(dir $(wildcard test/addons/*/*.gyp))), \
./$(NODE_EXE) deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \
Expand Down