Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Use same make as when originally invoked
Browse files Browse the repository at this point in the history
  • Loading branch information
rmustacc authored and ry committed May 20, 2011
1 parent 317653b commit 7ea19d0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Makefile
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion wscript
Expand Up @@ -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


Expand Down

0 comments on commit 7ea19d0

Please sign in to comment.