mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Moved docs stuff to build, to be created when the docs are actually built.
This commit is contained in:
parent
6c3314abed
commit
51dd3736eb
43
Makefile
43
Makefile
@ -1,36 +1,53 @@
|
|||||||
SRC_DIR = src
|
SRC_DIR = src
|
||||||
BUILD_DIR = build
|
BUILD_DIR = build
|
||||||
|
|
||||||
DOCS_DIR = docs
|
DOCS_DIR = docs
|
||||||
|
DIST_DIR = dist
|
||||||
|
|
||||||
MODULES = jquery event fx ajax
|
MODULES = jquery event fx ajax
|
||||||
JQ = jquery-svn.js
|
JQ = ${DIST_DIR}/jquery.js
|
||||||
JQ_PACK = jquery-svn.pack.js
|
JQ_LITE = ${DIST_DIR}/jquery.lite.js
|
||||||
|
JQ_PACK = ${DIST_DIR}/jquery.pack.js
|
||||||
|
|
||||||
all: ${JQ} ${JQ_PACK} docs
|
all: jquery lite pack docs
|
||||||
|
|
||||||
${JQ}:
|
${DIST_DIR}:
|
||||||
@@echo "Building jquery-svn.js";
|
mkdir -p ${DIST_DIR}
|
||||||
|
|
||||||
|
jquery: ${DIST_DIR} ${JQ}
|
||||||
|
|
||||||
|
${JQ}:
|
||||||
|
@@echo "Building" ${JQ};
|
||||||
|
|
||||||
@@for f in ${MODULES}; do \
|
@@for f in ${MODULES}; do \
|
||||||
echo "Adding module:" $$f;\
|
echo "Adding module:" $$f;\
|
||||||
cat ${SRC_DIR}/$$f/$$f.js >> ${JQ};\
|
cat ${SRC_DIR}/$$f/$$f.js >> ${JQ};\
|
||||||
done
|
done
|
||||||
|
|
||||||
@@echo "jquery-svn.js built.";
|
@@echo ${JQ} "built.";
|
||||||
|
|
||||||
|
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.";
|
||||||
|
|
||||||
|
pack: ${JQ_PACK}
|
||||||
|
|
||||||
${JQ_PACK}: ${JQ}
|
${JQ_PACK}: ${JQ}
|
||||||
@@echo "Building jquery-svn.pack.js";
|
@@echo "Building" ${JQ_PACK};
|
||||||
|
java -jar ${BUILD_DIR}/js.jar ${BUILD_DIR}/build.js ${JQ} ${JQ_PACK}
|
||||||
cd ${BUILD_DIR} && java -jar js.jar build.js ../${JQ} ../${JQ_PACK}
|
@@echo ${JQ_PACK} "built.";
|
||||||
|
|
||||||
@@echo "jquery-svn.pack.js built.";
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
|
||||||
docs: ${JQ}
|
docs: ${JQ}
|
||||||
@@echo "Building Documentation";
|
@@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.";
|
@@echo "Documentation built.";
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm ${JQ}
|
rm -rf ${DIST_DIR}
|
||||||
|
rm -f ${DOCS_DIR}/index.xml
|
||||||
|
rm -f ${DOCS_DIR}/data/*
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
load("js/ParseMaster.js", "js/pack.js", "js/writeFile.js");
|
load("build/js/ParseMaster.js", "build/js/pack.js", "build/js/writeFile.js");
|
||||||
|
|
||||||
var out = readFile( arguments[0] );
|
var out = readFile( arguments[0] );
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
load("js/json.js");
|
load("build/js/json.js", "build/js/xml.js", "build/js/writeFile.js");
|
||||||
load("js/xml.js");
|
|
||||||
load("js/writeFile.js");
|
|
||||||
|
|
||||||
var types = {
|
var types = {
|
||||||
jQuery: "A jQuery object.",
|
jQuery: "A jQuery object.",
|
||||||
|
Loading…
Reference in New Issue
Block a user