Added support for making a minified version of jQuery.
This commit is contained in:
parent
2712efd0fc
commit
4434b5ae65
15
Makefile
15
Makefile
|
@ -10,8 +10,9 @@ PLUG_DIR = ../plugins
|
||||||
BASE_FILES = ${SRC_DIR}/jquery/jquery.js\
|
BASE_FILES = ${SRC_DIR}/jquery/jquery.js\
|
||||||
${SRC_DIR}/selector/selector.js\
|
${SRC_DIR}/selector/selector.js\
|
||||||
${SRC_DIR}/event/event.js\
|
${SRC_DIR}/event/event.js\
|
||||||
${SRC_DIR}/fx/fx.js\
|
|
||||||
${SRC_DIR}/ajax/ajax.js
|
${SRC_DIR}/ajax/ajax.js
|
||||||
|
#${SRC_DIR}/fx/fx.js\
|
||||||
|
#${SRC_DIR}/ajax/ajax.js
|
||||||
|
|
||||||
PLUGINS = ${PLUG_DIR}/button/*\
|
PLUGINS = ${PLUG_DIR}/button/*\
|
||||||
${PLUG_DIR}/center/*\
|
${PLUG_DIR}/center/*\
|
||||||
|
@ -38,6 +39,7 @@ MODULES_WITH_PLUGINS = ${SRC_DIR}/intro.js\
|
||||||
|
|
||||||
JQ = ${DIST_DIR}/jquery.js
|
JQ = ${DIST_DIR}/jquery.js
|
||||||
JQ_LITE = ${DIST_DIR}/jquery.lite.js
|
JQ_LITE = ${DIST_DIR}/jquery.lite.js
|
||||||
|
JQ_MIN = ${DIST_DIR}/jquery.min.js
|
||||||
JQ_PACK = ${DIST_DIR}/jquery.pack.js
|
JQ_PACK = ${DIST_DIR}/jquery.pack.js
|
||||||
|
|
||||||
JQ_VER = `cat version.txt`
|
JQ_VER = `cat version.txt`
|
||||||
|
@ -93,6 +95,17 @@ ${JQ_PACK}: ${JQ}
|
||||||
@@echo ${JQ_PACK} "Built"
|
@@echo ${JQ_PACK} "Built"
|
||||||
@@echo
|
@@echo
|
||||||
|
|
||||||
|
min: ${JQ_MIN}
|
||||||
|
|
||||||
|
${JQ_MIN}: ${JQ}
|
||||||
|
@@echo "Building" ${JQ_MIN}
|
||||||
|
|
||||||
|
@@echo " - Compressing using Minifier"
|
||||||
|
@@${JAR} ${BUILD_DIR}/build/min.js ${JQ} ${JQ_MIN}
|
||||||
|
|
||||||
|
@@echo ${JQ_MIN} "Built"
|
||||||
|
@@echo
|
||||||
|
|
||||||
test: ${JQ}
|
test: ${JQ}
|
||||||
@@echo "Building Test Suite"
|
@@echo "Building Test Suite"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue