2006-08-13 17:26:26 +02:00
|
|
|
SRC_DIR = src
|
|
|
|
BUILD_DIR = build
|
2006-08-13 20:38:51 +02:00
|
|
|
|
2006-08-13 17:26:26 +02:00
|
|
|
DOCS_DIR = docs
|
2006-08-13 20:38:51 +02:00
|
|
|
DIST_DIR = dist
|
2006-08-13 17:26:26 +02:00
|
|
|
|
|
|
|
MODULES = jquery event fx ajax
|
2006-08-13 20:38:51 +02:00
|
|
|
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}
|
2006-08-13 17:26:26 +02:00
|
|
|
|
2006-08-13 20:38:51 +02:00
|
|
|
jquery: ${DIST_DIR} ${JQ}
|
2006-08-13 17:26:26 +02:00
|
|
|
|
2006-08-13 20:38:51 +02:00
|
|
|
${JQ}:
|
|
|
|
@@echo "Building" ${JQ};
|
2006-08-13 17:26:26 +02:00
|
|
|
|
|
|
|
@@for f in ${MODULES}; do \
|
|
|
|
echo "Adding module:" $$f;\
|
|
|
|
cat ${SRC_DIR}/$$f/$$f.js >> ${JQ};\
|
|
|
|
done
|
|
|
|
|
2006-08-13 20:38:51 +02:00
|
|
|
@@echo ${JQ} "built.";
|
2006-08-13 17:26:26 +02:00
|
|
|
|
2006-08-13 20:38:51 +02:00
|
|
|
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.";
|
2006-08-13 17:26:26 +02:00
|
|
|
|
2006-08-13 20:38:51 +02:00
|
|
|
pack: ${JQ_PACK}
|
2006-08-13 17:26:26 +02:00
|
|
|
|
2006-08-13 20:38:51 +02:00
|
|
|
${JQ_PACK}: ${JQ}
|
|
|
|
@@echo "Building" ${JQ_PACK};
|
|
|
|
java -jar ${BUILD_DIR}/js.jar ${BUILD_DIR}/build.js ${JQ} ${JQ_PACK}
|
|
|
|
@@echo ${JQ_PACK} "built.";
|
2006-08-13 17:26:26 +02:00
|
|
|
|
|
|
|
test:
|
|
|
|
|
|
|
|
docs: ${JQ}
|
|
|
|
@@echo "Building Documentation";
|
2006-08-13 20:38:51 +02:00
|
|
|
java -jar ${BUILD_DIR}/js.jar ${BUILD_DIR}/docs.js ${JQ} ${DOCS_DIR}
|
2006-08-13 17:26:26 +02:00
|
|
|
@@echo "Documentation built.";
|
|
|
|
|
|
|
|
clean:
|
2006-08-13 20:38:51 +02:00
|
|
|
rm -rf ${DIST_DIR}
|
|
|
|
rm -f ${DOCS_DIR}/index.xml
|
|
|
|
rm -f ${DOCS_DIR}/data/*
|