5 DOCS_DIR = ${PREFIX}/docs
6 TEST_DIR = ${PREFIX}/test
7 DIST_DIR = ${PREFIX}/dist
9 MODULES = ${SRC_DIR}/intro.js\
16 JQ = ${DIST_DIR}/jquery.js
17 JQ_LITE = ${DIST_DIR}/jquery.lite.js
18 JQ_PACK = ${DIST_DIR}/jquery.pack.js
20 JAR = java -jar ${BUILD_DIR}/js.jar
22 all: jquery lite pack docs test
23 @@echo "jQuery build complete."
26 @@mkdir -p ${DIST_DIR}
28 jquery: ${DIST_DIR} ${JQ}
31 @@echo "Building" ${JQ}
33 @@mkdir -p ${DIST_DIR}
34 @@cat ${MODULES} > ${JQ};
42 @@echo "Building" ${JQ_LITE}
44 @@echo " - Removing ScriptDoc from" ${JQ}
45 @@${JAR} ${BUILD_DIR}/build/lite.js ${JQ} ${JQ_LITE}
47 @@echo ${JQ_LITE} "Built"
53 @@echo "Building" ${JQ_PACK}
55 @@echo " - Compressing using Packer"
56 @@${JAR} ${BUILD_DIR}/build/pack.js ${JQ} ${JQ_PACK}
58 @@echo ${JQ_PACK} "Built"
62 @@echo "Building Test Suite"
64 @@echo " - Making Test Suite Directory:" ${TEST_DIR}
65 @@mkdir -p ${TEST_DIR}
67 @@echo " - Removing any old tests"
68 @@rm -f ${TEST_DIR}/tests/*
70 @@echo " - Copying over script files."
71 @@cp -fR ${BUILD_DIR}/test/js ${TEST_DIR}/js
72 @@cp -f ${BUILD_DIR}/test/index.html ${TEST_DIR}
74 @@echo " - Compiling Test Cases"
75 @@${JAR} ${BUILD_DIR}/test/test.js ${JQ} ${TEST_DIR}
77 @@echo "Test Suite Built"
81 @@echo "Building Documentation"
83 @@echo " - Making Documentation Directory:" ${DOCS_DIR}
84 @@mkdir -p ${DOCS_DIR}
85 @@mkdir -p ${DOCS_DIR}/data
87 @@echo " - Copying over htaccess file."
88 @@cp -fR ${BUILD_DIR}/docs/.htaccess ${DOCS_DIR}
90 @@echo " - Copying over script files."
91 @@cp -fR ${BUILD_DIR}/docs/js ${DOCS_DIR}/js
93 @@echo " - Copying over style files."
94 @@cp -fR ${BUILD_DIR}/docs/style ${DOCS_DIR}/style
96 @@echo " - Extracting ScriptDoc from" ${JQ}
97 @@${JAR} ${BUILD_DIR}/docs/docs.js ${JQ} ${DOCS_DIR}
99 @@echo "Documentation Built"
103 @@echo "Removing Distribution directory:" ${DIST_DIR}
106 @@echo "Removing Test Suite directory:" ${TEST_DIR}
109 @@echo "Removing Documentation directory:" ${DOCS_DIR}