Browse Source

Use same make as when originally invoked

v0.7.4-release
Robert Mustacchi 14 years ago
committed by Ryan Dahl
parent
commit
7ea19d02fd
  1. 8
      Makefile
  2. 2
      wscript

8
Makefile

@ -2,6 +2,14 @@ WAF=python tools/waf-light
web_root = ryan@nodejs.org:~/web/nodejs.org/
#
# Because we recursively call make from waf we need to make sure that we are
# using the correct make. Not all makes are GNU Make, but this likely only
# works with gnu make. To deal with this we remember how the user invoked us
# via a make builtin variable and use that in all subsequent operations
#
export NODE_MAKE := $(MAKE)
all: program
all-progress:

2
wscript

@ -599,7 +599,7 @@ def uv_cmd(bld, variant):
# modifying libuv's build to send object files to a separate directory.
#
cmd = 'cp -r ' + sh_escape(srcdir) + '/* ' + sh_escape(blddir) + \
' && make -C ' + sh_escape(blddir)
' && if [[ -z "$NODE_MAKE" ]]; then NODE_MAKE=make; fi; $NODE_MAKE -C ' + sh_escape(blddir)
return cmd

Loading…
Cancel
Save