diff --git a/Makefile b/Makefile
index a906d0bf..baa06c40 100644
--- a/Makefile
+++ b/Makefile
@@ -5,12 +5,30 @@ PREFIX = .
DOCS_DIR = ${PREFIX}/docs
TEST_DIR = ${PREFIX}/test
DIST_DIR = ${PREFIX}/dist
+PLUG_DIR = ../plugins
-MODULES = ${SRC_DIR}/intro.js\
- ${SRC_DIR}/jquery/*\
+BASE_FILES = ${SRC_DIR}/jquery/*\
${SRC_DIR}/event/*\
${SRC_DIR}/fx/*\
- ${SRC_DIR}/ajax/*\
+ ${SRC_DIR}/ajax/*
+
+PLUGINS = ${PLUG_DIR}/button/*\
+ ${PLUG_DIR}/center/*\
+ ${PLUG_DIR}/cookie/*\
+ ${PLUG_DIR}/form/*\
+ ${PLUG_DIR}/greybox/greybox.js\
+ ${PLUG_DIR}/interface/*\
+ ${PLUG_DIR}/pager/*\
+ ${PLUG_DIR}/tablesorter/*\
+ ${PLUG_DIR}/tabs/*
+
+MODULES = ${SRC_DIR}/intro.js\
+ ${BASE_FILES}\
+ ${SRC_DIR}/outro.js
+
+MODULES_WITH_PLUGINS = ${SRC_DIR}/intro.js\
+ ${BASE_FILES}\
+ ${PLUGINS}\
${SRC_DIR}/outro.js
JQ = ${DIST_DIR}/jquery.js
@@ -39,6 +57,15 @@ ${JQ}: ${MODULES}
@@echo ${JQ} "Built"
@@echo
+with_plugins: ${MODULES_WITH_PLUGINS}
+ @@echo "Building" ${JQ}
+
+ @@mkdir -p ${DIST_DIR}
+ @@cat ${MODULES_WITH_PLUGINS} | ${VER} > ${JQ};
+
+ @@echo ${JQ} "Built"
+ @@echo
+
lite: ${JQ_LITE}
${JQ_LITE}: ${JQ}
diff --git a/build.xml b/build.xml
index 0919aaa8..024dcd79 100644
--- a/build.xml
+++ b/build.xml
@@ -38,6 +38,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -67,7 +90,17 @@
-
+
+
+
+
+
+
+
+
+
+
+
@@ -106,7 +139,31 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+