Detect node-gyp at configure time and show version in javascript_version target

This commit is contained in:
William S Fulton 2014-04-19 16:44:21 +01:00
commit efc5af04e0
3 changed files with 17 additions and 18 deletions

View file

@ -3,6 +3,7 @@
#######################################################################
LANGUAGE = javascript
NODEGYP = @NODEGYP@
SCRIPTSUFFIX = _runme.js
srcdir = @srcdir@
top_srcdir = @top_srcdir@
@ -104,7 +105,7 @@ ifeq (node,$(JSENGINE))
$(SWIG) -c++ -javascript $(SWIGOPT) ../$*.i;
nodejs_swig_and_compile = \
node-gyp --loglevel=silent --directory $* configure build 1>>/dev/null
$(NODEGYP) --loglevel=silent --directory $* configure build 1>>/dev/null
run_testcase = \
if [ -f $(srcdir)/$*$(SCRIPTSUFFIX) ]; then \