Update Makefile to use either nodejs or node, whichever exists (Debian uses nodejs).
[jquery.git] / Makefile
index 7540a27..56b273d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ BUILD_DIR = build
 PREFIX = .
 DIST_DIR = ${PREFIX}/dist
 
-JS_ENGINE ?= node
+JS_ENGINE ?= `which nodejs node`
 COMPILER = ${JS_ENGINE} ${BUILD_DIR}/uglify.js --unsafe
 
 BASE_FILES = ${SRC_DIR}/core.js\