Fix Makefile to use plain sed. Remove unicode trickery
[jquery.git] / Makefile
index 7540a27..146b5e3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-V ?= 0
+V ?= 0
 
 SRC_DIR = src
 TEST_DIR = test
@@ -7,7 +7,7 @@ BUILD_DIR = build
 PREFIX = .
 DIST_DIR = ${PREFIX}/dist
 
-JS_ENGINE ?= node
+JS_ENGINE ?= `which node nodejs`
 COMPILER = ${JS_ENGINE} ${BUILD_DIR}/uglify.js --unsafe
 
 BASE_FILES = ${SRC_DIR}/core.js\
@@ -97,6 +97,7 @@ min: ${JQ_MIN}
 ${JQ_MIN}: ${JQ}
        @@echo "Building" ${JQ_MIN}
        @@${COMPILER} ${JQ} > ${JQ_MIN}
+       @@sed -i '$ s#^\( \*/\)\(.\+\)#\1\n\2;#' ${JQ_MIN}
 
 clean:
        @@echo "Removing Distribution directory:" ${DIST_DIR}