Moved the test directory.
This commit is contained in:
parent
0cd3821ac2
commit
e943090a72
35
Makefile
35
Makefile
|
@ -11,6 +11,8 @@ JQ = ${DIST_DIR}/jquery.js
|
||||||
JQ_LITE = ${DIST_DIR}/jquery.lite.js
|
JQ_LITE = ${DIST_DIR}/jquery.lite.js
|
||||||
JQ_PACK = ${DIST_DIR}/jquery.pack.js
|
JQ_PACK = ${DIST_DIR}/jquery.pack.js
|
||||||
|
|
||||||
|
JAR = java -jar ${BUILD_DIR}/js.jar
|
||||||
|
|
||||||
all: jquery lite pack docs
|
all: jquery lite pack docs
|
||||||
@@echo "jQuery build complete."
|
@@echo "jQuery build complete."
|
||||||
|
|
||||||
|
@ -27,7 +29,7 @@ ${JQ}:
|
||||||
cat ${SRC_DIR}/$$f/$$f.js >> ${JQ};\
|
cat ${SRC_DIR}/$$f/$$f.js >> ${JQ};\
|
||||||
done
|
done
|
||||||
|
|
||||||
@@echo ${JQ} "built."
|
@@echo ${JQ} "Built"
|
||||||
@@echo
|
@@echo
|
||||||
|
|
||||||
lite: ${JQ_LITE}
|
lite: ${JQ_LITE}
|
||||||
|
@ -35,8 +37,8 @@ lite: ${JQ_LITE}
|
||||||
${JQ_LITE}: jquery
|
${JQ_LITE}: jquery
|
||||||
@@echo "Building" ${JQ_LITE}
|
@@echo "Building" ${JQ_LITE}
|
||||||
@@echo " - Removing ScriptDoc from" ${JQ}
|
@@echo " - Removing ScriptDoc from" ${JQ}
|
||||||
@@java -jar ${BUILD_DIR}/js.jar ${BUILD_DIR}/build/lite.js ${JQ} ${JQ_LITE}
|
@@${JAR} ${BUILD_DIR}/build/lite.js ${JQ} ${JQ_LITE}
|
||||||
@@echo ${JQ_LITE} "built."
|
@@echo ${JQ_LITE} "Built"
|
||||||
@@echo
|
@@echo
|
||||||
|
|
||||||
pack: ${JQ_PACK}
|
pack: ${JQ_PACK}
|
||||||
|
@ -44,11 +46,24 @@ pack: ${JQ_PACK}
|
||||||
${JQ_PACK}: jquery
|
${JQ_PACK}: jquery
|
||||||
@@echo "Building" ${JQ_PACK}
|
@@echo "Building" ${JQ_PACK}
|
||||||
@@echo " - Compressing using Packer"
|
@@echo " - Compressing using Packer"
|
||||||
@@java -jar ${BUILD_DIR}/js.jar ${BUILD_DIR}/build/pack.js ${JQ} ${JQ_PACK}
|
@@${JAR} ${BUILD_DIR}/build/pack.js ${JQ} ${JQ_PACK}
|
||||||
@@echo ${JQ_PACK} "built."
|
@@echo ${JQ_PACK} "Built"
|
||||||
@@echo
|
@@echo
|
||||||
|
|
||||||
test: ${JQ}
|
test: ${JQ}
|
||||||
|
@@echo "Building Test Suite"
|
||||||
|
|
||||||
|
@@echo " - Making Test Suite Directory:" ${TEST_DIR}
|
||||||
|
@@mkdir -p ${TEST_DIR}
|
||||||
|
|
||||||
|
@@echo " - Copying over script files."
|
||||||
|
@@cp -R ${BUILD_DIR}/test/js ${TEST_DIR}/js
|
||||||
|
|
||||||
|
@@echo " - Compiling Test Cases"
|
||||||
|
@@${JAR} ${BUILD_DIR}/test/test.js ${JQ} ${TEST_DIR}
|
||||||
|
|
||||||
|
@@echo "Test Suite Built"
|
||||||
|
@@echo
|
||||||
|
|
||||||
docs: ${JQ}
|
docs: ${JQ}
|
||||||
@@echo "Building Documentation"
|
@@echo "Building Documentation"
|
||||||
|
@ -64,11 +79,17 @@ docs: ${JQ}
|
||||||
@@cp -R ${BUILD_DIR}/docs/style ${DOCS_DIR}/style
|
@@cp -R ${BUILD_DIR}/docs/style ${DOCS_DIR}/style
|
||||||
|
|
||||||
@@echo " - Extracting ScriptDoc from" ${JQ}
|
@@echo " - Extracting ScriptDoc from" ${JQ}
|
||||||
@@java -jar ${BUILD_DIR}/js.jar ${BUILD_DIR}/docs/docs.js ${JQ} ${DOCS_DIR}
|
@@${JAR} ${BUILD_DIR}/docs/docs.js ${JQ} ${DOCS_DIR}
|
||||||
|
|
||||||
@@echo "Documentation built."
|
@@echo "Documentation Built"
|
||||||
@@echo
|
@@echo
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@@echo "Removing Distribution directory:" ${DIST_DIR}
|
||||||
@@rm -rf ${DIST_DIR}
|
@@rm -rf ${DIST_DIR}
|
||||||
|
|
||||||
|
@@echo "Removing Test Suite directory:" ${TEST_DIR}
|
||||||
|
@@rm -rf ${TEST_DIR}
|
||||||
|
|
||||||
|
@@echo "Removing Documentation directory:" ${DOCS_DIR}
|
||||||
@@rm -rf ${DOCS_DIR}
|
@@rm -rf ${DOCS_DIR}
|
||||||
|
|
Loading…
Reference in a new issue