Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 178 lines (130 sloc) 3.798 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 DOCS_DIR = ${PREFIX}/docs
6 TEST_DIR = ${PREFIX}/test
7 DIST_DIR = ${PREFIX}/dist
73ab36b @jeresig Added the Speed Test Suite. Can be made by doing 'make speed'.
jeresig authored
8 SPEED_DIR = ${PREFIX}/speed
3980dc9 @wycats Added comments to various plugins and added make and ant options to m…
wycats authored
9 PLUG_DIR = ../plugins
f01c002 @jeresig Added the new Makefile.
jeresig authored
10
b4e23b5 @jeresig Reorganzing the jQuery source (first phase).
jeresig authored
11 BASE_FILES = ${SRC_DIR}/core.js\
4afa608 @flesler jquery data: Closes #3539. Exposed jQuery.queue. Moved all the data a…
flesler authored
12 ${SRC_DIR}/data.js\
b850ab2 @jeresig Added the new jQuery.support object and removed all uses of jQuery.br…
jeresig authored
13 ${SRC_DIR}/support.js\
b4e23b5 @jeresig Reorganzing the jQuery source (first phase).
jeresig authored
14 ${SRC_DIR}/selector.js\
15 ${SRC_DIR}/event.js\
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 PLUGINS = ${PLUG_DIR}/button/*\
22 ${PLUG_DIR}/center/*\
23 ${PLUG_DIR}/cookie/*\
78ed830 @wycats Added metadata (fully documented)
wycats authored
24 ${PLUG_DIR}/dimensions/*\
25 ${PLUG_DIR}/metadata/*\
3980dc9 @wycats Added comments to various plugins and added make and ant options to m…
wycats authored
26 ${PLUG_DIR}/form/*\
27 ${PLUG_DIR}/greybox/greybox.js\
28 ${PLUG_DIR}/interface/*\
29 ${PLUG_DIR}/pager/*\
30 ${PLUG_DIR}/tablesorter/*\
a2ab7ef @jzaefferer Tried to fix make build, PLEASE TEST
jzaefferer authored
31 ${PLUG_DIR}/tabs/*\
32 ${PLUG_DIR}/tooltip/jquery.tooltip.js\
33 ${PLUG_DIR}/accordion/jquery.accordion.js
3980dc9 @wycats Added comments to various plugins and added make and ant options to m…
wycats authored
34
35 MODULES = ${SRC_DIR}/intro.js\
36 ${BASE_FILES}\
37 ${SRC_DIR}/outro.js
38
39 MODULES_WITH_PLUGINS = ${SRC_DIR}/intro.js\
40 ${BASE_FILES}\
41 ${PLUGINS}\
87284a8 @jzaefferer Fixed typo, thanks Patrick
jzaefferer authored
42 ${SRC_DIR}/outro.js
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored
43
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually b…
jeresig authored
44 JQ = ${DIST_DIR}/jquery.js
45 JQ_LITE = ${DIST_DIR}/jquery.lite.js
4434b5a @jeresig Added support for making a minified version of jQuery.
jeresig authored
46 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
47 JQ_PACK = ${DIST_DIR}/jquery.pack.js
48
766c376 @jeresig Now have accurate version information built into jquery.js - will bui…
jeresig authored
49 JQ_VER = `cat version.txt`
50 VER = sed s/@VERSION/${JQ_VER}/
51
e943090 @jeresig Moved the test directory.
jeresig authored
52 JAR = java -jar ${BUILD_DIR}/js.jar
434b87b @jeresig Moved from the old JSMin to using YUIMin for compressing the jQuery s…
jeresig authored
53 MINJAR = java -jar ${BUILD_DIR}/yuicompressor-2.4.2.jar
e943090 @jeresig Moved the test directory.
jeresig authored
54
192d6cd @jeresig Moved the copyright to the intro file, added a ! so that it passes th…
jeresig authored
55 DATE=`svn info . | grep Date: | sed 's/.*: //g'`
56 REV=`svn info . | grep Rev: | sed 's/.*: //g'`
57
b4e23b5 @jeresig Reorganzing the jQuery source (first phase).
jeresig authored
58 all: jquery lite min pack speed
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
59 @@echo "jQuery build complete."
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually b…
jeresig authored
60
61 ${DIST_DIR}:
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
62 @@mkdir -p ${DIST_DIR}
f01c002 @jeresig Added the new Makefile.
jeresig authored
63
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually b…
jeresig authored
64 jquery: ${DIST_DIR} ${JQ}
f01c002 @jeresig Added the new Makefile.
jeresig authored
65
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored
66 ${JQ}: ${MODULES}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
67 @@echo "Building" ${JQ}
192d6cd @jeresig Moved the copyright to the intro file, added a ! so that it passes th…
jeresig authored
68 echo "${DATE}"
f01c002 @jeresig Added the new Makefile.
jeresig authored
69
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored
70 @@mkdir -p ${DIST_DIR}
192d6cd @jeresig Moved the copyright to the intro file, added a ! so that it passes th…
jeresig authored
71 @@cat ${MODULES} | \
72 sed 's/Date:./&'"${DATE}"'/' | \
73 sed 's/Revision:./&'"${REV}"'/' | \
74 ${VER} > ${JQ};
f01c002 @jeresig Added the new Makefile.
jeresig authored
75
e943090 @jeresig Moved the test directory.
jeresig authored
76 @@echo ${JQ} "Built"
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
77 @@echo
f01c002 @jeresig Added the new Makefile.
jeresig authored
78
3980dc9 @wycats Added comments to various plugins and added make and ant options to m…
wycats authored
79 with_plugins: ${MODULES_WITH_PLUGINS}
80 @@echo "Building" ${JQ}
81
82 @@mkdir -p ${DIST_DIR}
83 @@cat ${MODULES_WITH_PLUGINS} | ${VER} > ${JQ};
84
85 @@echo ${JQ} "Built"
86 @@echo
87
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually b…
jeresig authored
88 lite: ${JQ_LITE}
89
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored
90 ${JQ_LITE}: ${JQ}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
91 @@echo "Building" ${JQ_LITE}
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored
92
1fc7dcf @jeresig Fixed lite version of jQuery.
jeresig authored
93 @@cp ${JQ} ${JQ_LITE}
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored
94
e943090 @jeresig Moved the test directory.
jeresig authored
95 @@echo ${JQ_LITE} "Built"
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
96 @@echo
f01c002 @jeresig Added the new Makefile.
jeresig authored
97
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually b…
jeresig authored
98 pack: ${JQ_PACK}
f01c002 @jeresig Added the new Makefile.
jeresig authored
99
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored
100 ${JQ_PACK}: ${JQ}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
101 @@echo "Building" ${JQ_PACK}
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored
102
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
103 @@echo " - Compressing using Packer"
e943090 @jeresig Moved the test directory.
jeresig authored
104 @@${JAR} ${BUILD_DIR}/build/pack.js ${JQ} ${JQ_PACK}
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored
105
e943090 @jeresig Moved the test directory.
jeresig authored
106 @@echo ${JQ_PACK} "Built"
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
107 @@echo
f01c002 @jeresig Added the new Makefile.
jeresig authored
108
4434b5a @jeresig Added support for making a minified version of jQuery.
jeresig authored
109 min: ${JQ_MIN}
110
111 ${JQ_MIN}: ${JQ}
112 @@echo "Building" ${JQ_MIN}
113
114 @@echo " - Compressing using Minifier"
434b87b @jeresig Moved from the old JSMin to using YUIMin for compressing the jQuery s…
jeresig authored
115 @@${MINJAR} ${JQ} > ${JQ_MIN}
4434b5a @jeresig Added support for making a minified version of jQuery.
jeresig authored
116
117 @@echo ${JQ_MIN} "Built"
118 @@echo
119
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
120 test: ${JQ}
e943090 @jeresig Moved the test directory.
jeresig authored
121 @@echo "Building Test Suite"
122 @@echo "Test Suite Built"
123 @@echo
f01c002 @jeresig Added the new Makefile.
jeresig authored
124
89a9a74 @jeresig Automated test running using Rhino (no browser required!). Still very…
jeresig authored
125 runtest: ${JQ} test
126 @@echo "Running Automated Test Suite"
127 @@${JAR} ${BUILD_DIR}/runtest/test.js
128
129 @@echo "Test Suite Finished"
130 @@echo
131
f01c002 @jeresig Added the new Makefile.
jeresig authored
132 docs: ${JQ}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
133 @@echo "Building Documentation"
134
135 @@echo " - Making Documentation Directory:" ${DOCS_DIR}
136 @@mkdir -p ${DOCS_DIR}
137 @@mkdir -p ${DOCS_DIR}/data
138
2d56dbc @jeresig Added .htaccess file for docs directory.
jeresig authored
139 @@echo " - Copying over htaccess file."
140 @@cp -fR ${BUILD_DIR}/docs/.htaccess ${DOCS_DIR}
141
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
142 @@echo " - Copying over script files."
269ff25 @jeresig Changed the -n flag of cp to -f, not equivalent, but it gets the job …
jeresig authored
143 @@cp -fR ${BUILD_DIR}/docs/js ${DOCS_DIR}/js
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
144
145 @@echo " - Copying over style files."
269ff25 @jeresig Changed the -n flag of cp to -f, not equivalent, but it gets the job …
jeresig authored
146 @@cp -fR ${BUILD_DIR}/docs/style ${DOCS_DIR}/style
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
147
148 @@echo " - Extracting ScriptDoc from" ${JQ}
e943090 @jeresig Moved the test directory.
jeresig authored
149 @@${JAR} ${BUILD_DIR}/docs/docs.js ${JQ} ${DOCS_DIR}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
150
e943090 @jeresig Moved the test directory.
jeresig authored
151 @@echo "Documentation Built"
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
152 @@echo
f01c002 @jeresig Added the new Makefile.
jeresig authored
153
73ab36b @jeresig Added the Speed Test Suite. Can be made by doing 'make speed'.
jeresig authored
154 speed: ${JQ}
155 @@echo "Building Speed Test Suite"
156
157 @@echo " - Making Speed Test Suite Directory:" ${SPEED_DIR}
158 @@mkdir -p ${SPEED_DIR}
159
160 @@echo " - Copying over script files."
161 @@cp -f ${BUILD_DIR}/speed/index.html ${SPEED_DIR}
162 @@cp -f ${BUILD_DIR}/speed/benchmarker.css ${SPEED_DIR}
163 @@cp -f ${BUILD_DIR}/speed/benchmarker.js ${SPEED_DIR}
f354e85 @jeresig Fixed make speed.
jeresig authored
164 @@cp -f ${BUILD_DIR}/speed/jquery-basis.js ${SPEED_DIR}
73ab36b @jeresig Added the Speed Test Suite. Can be made by doing 'make speed'.
jeresig authored
165
166 @@echo "Speed Test Suite Built"
167 @@echo
168
f01c002 @jeresig Added the new Makefile.
jeresig authored
169 clean:
e943090 @jeresig Moved the test directory.
jeresig authored
170 @@echo "Removing Distribution directory:" ${DIST_DIR}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
171 @@rm -rf ${DIST_DIR}
e943090 @jeresig Moved the test directory.
jeresig authored
172
173 @@echo "Removing Documentation directory:" ${DOCS_DIR}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
174 @@rm -rf ${DOCS_DIR}
73ab36b @jeresig Added the Speed Test Suite. Can be made by doing 'make speed'.
jeresig authored
175
176 @@echo "Removing Speed Test Suite directory:" ${SPEED_DIR}
177 @@rm -rf ${SPEED_DIR}
Something went wrong with that request. Please try again.