aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2006-08-13 15:26:26 +0000
committerJohn Resig <jeresig@gmail.com>2006-08-13 15:26:26 +0000
commitf01c002f2620473aa32a5d07a51b5ffb43d573f7 (patch)
treeb58a0430c7b5ae9dc63a30da48871da520503abe /Makefile
parente7a29e42391160949dc35c1af4b0d24ee1c8ad8f (diff)
downloadjquery-f01c002f2620473aa32a5d07a51b5ffb43d573f7.tar.gz
jquery-f01c002f2620473aa32a5d07a51b5ffb43d573f7.zip
Added the new Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 000000000..de1821961
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,36 @@
+SRC_DIR = src
+BUILD_DIR = build
+DOCS_DIR = docs
+
+MODULES = jquery event fx ajax
+JQ = jquery-svn.js
+JQ_PACK = jquery-svn.pack.js
+
+all: ${JQ} ${JQ_PACK} docs
+
+${JQ}:
+ @@echo "Building jquery-svn.js";
+
+ @@for f in ${MODULES}; do \
+ echo "Adding module:" $$f;\
+ cat ${SRC_DIR}/$$f/$$f.js >> ${JQ};\
+ done
+
+ @@echo "jquery-svn.js built.";
+
+${JQ_PACK}: ${JQ}
+ @@echo "Building jquery-svn.pack.js";
+
+ cd ${BUILD_DIR} && java -jar js.jar build.js ../${JQ} ../${JQ_PACK}
+
+ @@echo "jquery-svn.pack.js built.";
+
+test:
+
+docs: ${JQ}
+ @@echo "Building Documentation";
+ cd ${BUILD_DIR} && java -jar js.jar docs.js ../${JQ} ../${DOCS_DIR}
+ @@echo "Documentation built.";
+
+clean:
+ rm ${JQ}