Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 79 lines (57 sloc) 1.762 kb
f01c002 @jeresig Added the new Makefile.
jeresig authored
1 SRC_DIR = src
2 BUILD_DIR = build
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually b…
jeresig authored
3
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
4 PREFIX = .
5 DIST_DIR = ${PREFIX}/dist
f01c002 @jeresig Added the new Makefile.
jeresig authored
6
b4e23b5 @jeresig Reorganzing the jQuery source (first phase).
jeresig authored
7 BASE_FILES = ${SRC_DIR}/core.js\
4afa608 @flesler jquery data: Closes #3539. Exposed jQuery.queue. Moved all the data a…
flesler authored
8 ${SRC_DIR}/data.js\
520f1a2 @jeresig Broke the logic for .clean() wrap out into a separate, static, data s…
jeresig authored
9 ${SRC_DIR}/event.js\
10 ${SRC_DIR}/support.js\
b4e23b5 @jeresig Reorganzing the jQuery source (first phase).
jeresig authored
11 ${SRC_DIR}/selector.js\
7c04a64 @brandonaaron breaking jquery out into smaller modules. added attributes.js, manipu…
brandonaaron authored
12 ${SRC_DIR}/traversing.js\
13 ${SRC_DIR}/attributes.js\
14 ${SRC_DIR}/manipulation.js\
d7d908b @brandonaaron decoupling styles retrieval from the attr method
brandonaaron authored
15 ${SRC_DIR}/css.js\
b4e23b5 @jeresig Reorganzing the jQuery source (first phase).
jeresig authored
16 ${SRC_DIR}/ajax.js\
15a78f8 @jeresig Reintroduced .offset() as a default include, added original author cr…
jeresig authored
17 ${SRC_DIR}/fx.js\
aea452f @brandonaaron Merged dimensions with core
brandonaaron authored
18 ${SRC_DIR}/offset.js\
19 ${SRC_DIR}/dimensions.js
3980dc9 @wycats Added comments to various plugins and added make and ant options to m…
wycats authored
20
21 MODULES = ${SRC_DIR}/intro.js\
22 ${BASE_FILES}\
23 ${SRC_DIR}/outro.js
24
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually b…
jeresig authored
25 JQ = ${DIST_DIR}/jquery.js
4434b5a @jeresig Added support for making a minified version of jQuery.
jeresig authored
26 JQ_MIN = ${DIST_DIR}/jquery.min.js
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually b…
jeresig authored
27
766c376 @jeresig Now have accurate version information built into jquery.js - will bui…
jeresig authored
28 JQ_VER = `cat version.txt`
29 VER = sed s/@VERSION/${JQ_VER}/
30
434b87b @jeresig Moved from the old JSMin to using YUIMin for compressing the jQuery s…
jeresig authored
31 MINJAR = java -jar ${BUILD_DIR}/yuicompressor-2.4.2.jar
e943090 @jeresig Moved the test directory.
jeresig authored
32
b7ccc58 @evansj fix sed statement used to extract the date
evansj authored
33 DATE=`git log -1 | grep Date: | sed 's/[^:]*: *//'`
192d6cd @jeresig Moved the copyright to the intro file, added a ! so that it passes th…
jeresig authored
34
81f65ce @jeresig Pull in the Sizzle library dynamically using a submodule and make it …
jeresig authored
35 all: jquery min
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
36 @@echo "jQuery build complete."
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually b…
jeresig authored
37
38 ${DIST_DIR}:
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
39 @@mkdir -p ${DIST_DIR}
f01c002 @jeresig Added the new Makefile.
jeresig authored
40
81f65ce @jeresig Pull in the Sizzle library dynamically using a submodule and make it …
jeresig authored
41 init:
42 @@echo "Grabbing external dependencies..."
d605b8e @jeresig Don't try to run the clone code if the directory already exists.
jeresig authored
43 @@if test ! -d test/qunit; then git clone git://github.com/jquery/qunit.git test/qunit; fi
44 @@if test ! -d src/sizzle; then git clone git://github.com/jeresig/sizzle.git src/sizzle; fi
45 @@cd src/sizzle && git pull origin master &> /dev/null
46 @@cd test/qunit && git pull origin master &> /dev/null
81f65ce @jeresig Pull in the Sizzle library dynamically using a submodule and make it …
jeresig authored
47
48 jquery: ${DIST_DIR} selector ${JQ}
f01c002 @jeresig Added the new Makefile.
jeresig authored
49
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored
50 ${JQ}: ${MODULES}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
51 @@echo "Building" ${JQ}
f01c002 @jeresig Added the new Makefile.
jeresig authored
52
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored
53 @@mkdir -p ${DIST_DIR}
81f65ce @jeresig Pull in the Sizzle library dynamically using a submodule and make it …
jeresig authored
54
192d6cd @jeresig Moved the copyright to the intro file, added a ! so that it passes th…
jeresig authored
55 @@cat ${MODULES} | \
56 sed 's/Date:./&'"${DATE}"'/' | \
57 ${VER} > ${JQ};
f01c002 @jeresig Added the new Makefile.
jeresig authored
58
81f65ce @jeresig Pull in the Sizzle library dynamically using a submodule and make it …
jeresig authored
59 selector: init
60 @@echo "Building selector code from Sizzle"
61 @@sed '/EXPOSE/r src/sizzle-jquery.js' src/sizzle/sizzle.js > src/selector.js
62
4434b5a @jeresig Added support for making a minified version of jQuery.
jeresig authored
63 min: ${JQ_MIN}
64
65 ${JQ_MIN}: ${JQ}
66 @@echo "Building" ${JQ_MIN}
67
434b87b @jeresig Moved from the old JSMin to using YUIMin for compressing the jQuery s…
jeresig authored
68 @@${MINJAR} ${JQ} > ${JQ_MIN}
4434b5a @jeresig Added support for making a minified version of jQuery.
jeresig authored
69
f01c002 @jeresig Added the new Makefile.
jeresig authored
70 clean:
e943090 @jeresig Moved the test directory.
jeresig authored
71 @@echo "Removing Distribution directory:" ${DIST_DIR}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
72 @@rm -rf ${DIST_DIR}
81f65ce @jeresig Pull in the Sizzle library dynamically using a submodule and make it …
jeresig authored
73
74 @@echo "Removing built copy of Sizzle"
75 @@rm src/selector.js
5480cd3 @jeresig Shortened the build messages in the Makefile and added test/qunit and…
jeresig authored
76
77 @@echo "Removing cloned directories"
78 @@rm -rf test/qunit src/sizzle
Something went wrong with that request. Please try again.