]> source.dussan.org Git - jquery.git/commitdiff
Update Makefile to use either nodejs or node, whichever exists (Debian uses nodejs).
authorColin Snover <github.com@zetafleet.com>
Tue, 18 Jan 2011 01:04:32 +0000 (19:04 -0600)
committerColin Snover <github.com@zetafleet.com>
Tue, 18 Jan 2011 01:04:32 +0000 (19:04 -0600)
Makefile

index 7540a272311a6aef80f5e6f35df9ec9a07454c51..56b273d681bb2b8f3c8b3c7fe7c3e36760849bed 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\