Use same make as when originally invoked
This commit is contained in:
parent
317653b4df
commit
7ea19d02fd
8
Makefile
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
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…
x
Reference in New Issue
Block a user