summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2016-06-10 11:33:14 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2016-06-13 11:23:03 +0200
commit9ce888274c77e1b91161656e75e990faf9ef548f (patch)
treee5901719a9d53a1344e1312b648085ec12f9b6cc /Makefile
parentd06820c624554df89e77cea4afd68a2ca58549a5 (diff)
downloadandroid-node-v8-9ce888274c77e1b91161656e75e990faf9ef548f.tar.gz
android-node-v8-9ce888274c77e1b91161656e75e990faf9ef548f.tar.bz2
android-node-v8-9ce888274c77e1b91161656e75e990faf9ef548f.zip
test: rebuild add-ons when their sources change
The prerequisite for rebuilding was on the binding.gyp file but the actual sources. PR-URL: https://github.com/nodejs/node/pull/7262 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index cf10346a21..c44ed79345 100644
--- a/Makefile
+++ b/Makefile
@@ -143,11 +143,15 @@ ADDONS_BINDING_GYPS := \
$(filter-out test/addons/??_*/binding.gyp, \
$(wildcard test/addons/*/binding.gyp))
+ADDONS_BINDING_SOURCES := \
+ $(filter-out test/addons/??_*/*.cc, $(wildcard test/addons/*/*.cc)) \
+ $(filter-out test/addons/??_*/*.h, $(wildcard test/addons/*/*.h)) \
+
# Implicitly depends on $(NODE_EXE), see the build-addons rule for rationale.
# Depends on node-gyp package.json so that build-addons is (re)executed when
# node-gyp is updated as part of an npm update.
test/addons/.buildstamp: deps/npm/node_modules/node-gyp/package.json \
- $(ADDONS_BINDING_GYPS) \
+ $(ADDONS_BINDING_GYPS) $(ADDONS_BINDING_SOURCES) \
deps/uv/include/*.h deps/v8/include/*.h \
src/node.h src/node_buffer.h src/node_object_wrap.h \
test/addons/.docbuildstamp