aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2006-08-13 18:38:51 +0000
committerJohn Resig <jeresig@gmail.com>2006-08-13 18:38:51 +0000
commit51dd3736eb84b171b041f419f6fb8a7e8626b0f2 (patch)
tree27b3a669a1de432557b17fbb918ddcf80cb322e2 /Makefile
parent6c3314abed7a54302afde8c7522745825cada33f (diff)
downloadjquery-51dd3736eb84b171b041f419f6fb8a7e8626b0f2.tar.gz
jquery-51dd3736eb84b171b041f419f6fb8a7e8626b0f2.zip
Moved docs stuff to build, to be created when the docs are actually built.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile41
1 files changed, 29 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index de1821961..f949811aa 100644
--- a/Makefile
+++ b/Makefile
@@ -1,36 +1,53 @@
SRC_DIR = src
BUILD_DIR = build
+
DOCS_DIR = docs
+DIST_DIR = dist
MODULES = jquery event fx ajax
-JQ = jquery-svn.js
-JQ_PACK = jquery-svn.pack.js
+JQ = ${DIST_DIR}/jquery.js
+JQ_LITE = ${DIST_DIR}/jquery.lite.js
+JQ_PACK = ${DIST_DIR}/jquery.pack.js
+
+all: jquery lite pack docs
+
+${DIST_DIR}:
+ mkdir -p ${DIST_DIR}
-all: ${JQ} ${JQ_PACK} docs
+jquery: ${DIST_DIR} ${JQ}
-${JQ}:
- @@echo "Building jquery-svn.js";
+${JQ}:
+ @@echo "Building" ${JQ};
@@for f in ${MODULES}; do \
echo "Adding module:" $$f;\
cat ${SRC_DIR}/$$f/$$f.js >> ${JQ};\
done
- @@echo "jquery-svn.js built.";
+ @@echo ${JQ} "built.";
-${JQ_PACK}: ${JQ}
- @@echo "Building jquery-svn.pack.js";
+lite: ${JQ_LITE}
+
+${JQ_LITE}: ${JQ}
+ @@echo "Building" ${JQ_LITE};
+ java -jar ${BUILD_DIR}/js.jar ${BUILD_DIR}/lite.js ${JQ} ${JQ_LITE}
+ @@echo ${JQ_LITE} "built.";
- cd ${BUILD_DIR} && java -jar js.jar build.js ../${JQ} ../${JQ_PACK}
+pack: ${JQ_PACK}
- @@echo "jquery-svn.pack.js built.";
+${JQ_PACK}: ${JQ}
+ @@echo "Building" ${JQ_PACK};
+ java -jar ${BUILD_DIR}/js.jar ${BUILD_DIR}/build.js ${JQ} ${JQ_PACK}
+ @@echo ${JQ_PACK} "built.";
test:
docs: ${JQ}
@@echo "Building Documentation";
- cd ${BUILD_DIR} && java -jar js.jar docs.js ../${JQ} ../${DOCS_DIR}
+ java -jar ${BUILD_DIR}/js.jar ${BUILD_DIR}/docs.js ${JQ} ${DOCS_DIR}
@@echo "Documentation built.";
clean:
- rm ${JQ}
+ rm -rf ${DIST_DIR}
+ rm -f ${DOCS_DIR}/index.xml
+ rm -f ${DOCS_DIR}/data/*