X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=Makefile;h=a6aae42538f3b4bea88098ec6ca0be384a3d175b;hb=5c2d70979c15bbda5c90e1634abe11d8c350abcb;hp=4dcc9e35e9e5a7ac0451b4400cf234a78277b873;hpb=2c290709d867ffd54b0011373de292b8e86a3509;p=jquery.git diff --git a/Makefile b/Makefile index 4dcc9e3..a6aae42 100644 --- a/Makefile +++ b/Makefile @@ -9,8 +9,10 @@ DIST_DIR = ${PREFIX}/dist JS_ENGINE ?= `which node nodejs` COMPILER = ${JS_ENGINE} ${BUILD_DIR}/uglify.js --unsafe +POST_COMPILER = ${JS_ENGINE} ${BUILD_DIR}/post-compile.js BASE_FILES = ${SRC_DIR}/core.js\ + ${SRC_DIR}/deferred.js\ ${SRC_DIR}/support.js\ ${SRC_DIR}/data.js\ ${SRC_DIR}/queue.js\ @@ -106,9 +108,8 @@ ${JQ_MIN}: jquery @@if test ! -z ${JS_ENGINE}; then \ echo "Minifying jQuery" ${JQ_MIN}; \ ${COMPILER} ${JQ} > ${JQ_MIN}.tmp; \ - echo ";" >> ${JQ_MIN}.tmp; \ - sed 's/\*\/(/*\/Ê©(/' ${JQ_MIN}.tmp | tr "Ê©" "\n" > ${JQ_MIN}; \ - rm -rf ${JQ_MIN}.tmp; \ + ${POST_COMPILER} ${JQ_MIN}.tmp > ${JQ_MIN}; \ + rm -f ${JQ_MIN}.tmp; \ else \ echo "You must have NodeJS installed in order to minify jQuery."; \ fi