5 DOCS_DIR = ${PREFIX}/docs
6 TEST_DIR = ${PREFIX}/test
7 DIST_DIR = ${PREFIX}/dist
9 MODULES = ${SRC_DIR}/jquery/*\
14 JQ = ${DIST_DIR}/jquery.js
15 JQ_LITE = ${DIST_DIR}/jquery.lite.js
16 JQ_PACK = ${DIST_DIR}/jquery.pack.js
18 JAR = java -jar ${BUILD_DIR}/js.jar
20 all: jquery lite pack docs test
21 @@echo "jQuery build complete."
24 @@mkdir -p ${DIST_DIR}
26 jquery: ${DIST_DIR} ${JQ}
29 @@echo "Building" ${JQ}
31 @@mkdir -p ${DIST_DIR}
32 @@cat ${MODULES} > ${JQ};
40 @@echo "Building" ${JQ_LITE}
42 @@echo " - Removing ScriptDoc from" ${JQ}
43 @@${JAR} ${BUILD_DIR}/build/lite.js ${JQ} ${JQ_LITE}
45 @@echo ${JQ_LITE} "Built"
51 @@echo "Building" ${JQ_PACK}
53 @@echo " - Compressing using Packer"
54 @@${JAR} ${BUILD_DIR}/build/pack.js ${JQ} ${JQ_PACK}
56 @@echo ${JQ_PACK} "Built"
60 @@echo "Building Test Suite"
62 @@echo " - Making Test Suite Directory:" ${TEST_DIR}
63 @@mkdir -p ${TEST_DIR}
64 @@mkdir -p ${TEST_DIR}/tests/
66 @@echo " - Removing any old tests"
67 @@rm -f ${TEST_DIR}/tests/*
69 @@echo " - Copying over script files."
70 @@cp -fR ${BUILD_DIR}/test/js ${TEST_DIR}/js
72 @@echo " - Compiling Test Cases"
73 @@${JAR} ${BUILD_DIR}/test/test.js ${JQ} ${TEST_DIR}
75 @@echo "Test Suite Built"
79 @@echo "Building Documentation"
81 @@echo " - Making Documentation Directory:" ${DOCS_DIR}
82 @@mkdir -p ${DOCS_DIR}
83 @@mkdir -p ${DOCS_DIR}/data
85 @@echo " - Copying over script files."
86 @@cp -fR ${BUILD_DIR}/docs/js ${DOCS_DIR}/js
88 @@echo " - Copying over style files."
89 @@cp -fR ${BUILD_DIR}/docs/style ${DOCS_DIR}/style
91 @@echo " - Extracting ScriptDoc from" ${JQ}
92 @@${JAR} ${BUILD_DIR}/docs/docs.js ${JQ} ${DOCS_DIR}
94 @@echo "Documentation Built"
98 @@echo "Removing Distribution directory:" ${DIST_DIR}
101 @@echo "Removing Test Suite directory:" ${TEST_DIR}
104 @@echo "Removing Documentation directory:" ${DOCS_DIR}