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 JQ_VER = `cat version.txt`
21 VER = sed s/@VERSION/${JQ_VER}/
23 JAR = java -jar ${BUILD_DIR}/js.jar
25 all: jquery lite pack docs test
26 @@echo "jQuery build complete."
29 @@mkdir -p ${DIST_DIR}
31 jquery: ${DIST_DIR} ${JQ}
34 @@echo "Building" ${JQ}
36 @@mkdir -p ${DIST_DIR}
37 @@cat ${MODULES} | ${VER} > ${JQ};
45 @@echo "Building" ${JQ_LITE}
47 @@echo " - Removing ScriptDoc from" ${JQ}
48 @@${JAR} ${BUILD_DIR}/build/lite.js ${JQ} ${JQ_LITE}
50 @@echo ${JQ_LITE} "Built"
56 @@echo "Building" ${JQ_PACK}
58 @@echo " - Compressing using Packer"
59 @@${JAR} ${BUILD_DIR}/build/pack.js ${JQ} ${JQ_PACK}
61 @@echo ${JQ_PACK} "Built"
65 @@echo "Building Test Suite"
67 @@echo " - Making Test Suite Directory:" ${TEST_DIR}
68 @@mkdir -p ${TEST_DIR}
70 @@echo " - Removing any old tests"
71 @@rm -f ${TEST_DIR}/tests/*
73 @@echo " - Copying over script files."
74 @@cp -fR ${BUILD_DIR}/test/data ${TEST_DIR}/data
75 @@cp -f ${BUILD_DIR}/test/index.html ${TEST_DIR}
77 @@echo " - Compiling Test Cases"
78 @@${JAR} ${BUILD_DIR}/test/test.js ${JQ} ${TEST_DIR}
80 @@echo "Test Suite Built"
84 @@echo "Building Documentation"
86 @@echo " - Making Documentation Directory:" ${DOCS_DIR}
87 @@mkdir -p ${DOCS_DIR}
88 @@mkdir -p ${DOCS_DIR}/data
90 @@echo " - Copying over htaccess file."
91 @@cp -fR ${BUILD_DIR}/docs/.htaccess ${DOCS_DIR}
93 @@echo " - Copying over script files."
94 @@cp -fR ${BUILD_DIR}/docs/js ${DOCS_DIR}/js
96 @@echo " - Copying over style files."
97 @@cp -fR ${BUILD_DIR}/docs/style ${DOCS_DIR}/style
99 @@echo " - Extracting ScriptDoc from" ${JQ}
100 @@${JAR} ${BUILD_DIR}/docs/docs.js ${JQ} ${DOCS_DIR}
102 @@echo "Documentation Built"
106 @@echo "Removing Distribution directory:" ${DIST_DIR}
109 @@echo "Removing Test Suite directory:" ${TEST_DIR}
112 @@echo "Removing Documentation directory:" ${DOCS_DIR}