Skip to content
Permalink
Browse files
Moved the test directory.
  • Loading branch information
jeresig committed Aug 13, 2006
1 parent 0cd3821 commit e943090a72fada9068705a701e2f37ca2907d310
@@ -11,6 +11,8 @@ JQ = ${DIST_DIR}/jquery.js
JQ_LITE = ${DIST_DIR}/jquery.lite.js
JQ_PACK = ${DIST_DIR}/jquery.pack.js

JAR = java -jar ${BUILD_DIR}/js.jar

all: jquery lite pack docs
@@echo "jQuery build complete."

@@ -27,28 +29,41 @@ ${JQ}:
cat ${SRC_DIR}/$$f/$$f.js >> ${JQ};\
done

@@echo ${JQ} "built."
@@echo ${JQ} "Built"
@@echo

lite: ${JQ_LITE}

${JQ_LITE}: jquery
@@echo "Building" ${JQ_LITE}
@@echo " - Removing ScriptDoc from" ${JQ}
@@java -jar ${BUILD_DIR}/js.jar ${BUILD_DIR}/build/lite.js ${JQ} ${JQ_LITE}
@@echo ${JQ_LITE} "built."
@@${JAR} ${BUILD_DIR}/build/lite.js ${JQ} ${JQ_LITE}
@@echo ${JQ_LITE} "Built"
@@echo

pack: ${JQ_PACK}

${JQ_PACK}: jquery
@@echo "Building" ${JQ_PACK}
@@echo " - Compressing using Packer"
@@java -jar ${BUILD_DIR}/js.jar ${BUILD_DIR}/build/pack.js ${JQ} ${JQ_PACK}
@@echo ${JQ_PACK} "built."
@@${JAR} ${BUILD_DIR}/build/pack.js ${JQ} ${JQ_PACK}
@@echo ${JQ_PACK} "Built"
@@echo

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}
@@echo "Building Documentation"
@@ -64,11 +79,17 @@ docs: ${JQ}
@@cp -R ${BUILD_DIR}/docs/style ${DOCS_DIR}/style

@@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

clean:
@@echo "Removing Distribution directory:" ${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}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e943090

Please sign in to comment.