From 72793beb3222ac7045c858514f62ab0e38ad60d2 Mon Sep 17 00:00:00 2001 From: Tim Oxley Date: Sat, 7 Jun 2014 22:21:43 -0700 Subject: [PATCH] Find node path using shell/which. Without this patch, Make would fail with the following error: ``` > make /bin/sh: node: command not found make: *** [node_modules] Error 127 ``` This may be something strange about my computer's configuration, but seems like a harmless change. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b4896d0..b0bde6e 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd) BIN := $(THIS_DIR)/node_modules/.bin # applications -NODE ?= node +NODE ?= $(shell which node) NPM ?= $(NODE) $(shell which npm) BROWSERIFY ?= $(NODE) $(BIN)/browserify