Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 170 lines (123 sloc) 3.573 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 buil...
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 make...
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 and ...
flesler authored
12 ${SRC_DIR}/data.js\
b850ab2 @jeresig Added the new jQuery.support object and removed all uses of jQuery.brows...
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 credi...
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 make...
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 make...
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 make...
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, a...
jeresig authored
43
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually buil...
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 buil...
jeresig authored
47 JQ_PACK = ${DIST_DIR}/jquery.pack.js
48
766c376 @jeresig Now have accurate version information built into jquery.js - will build ...
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
53
b4e23b5 @jeresig Reorganzing the jQuery source (first phase).
jeresig authored
54 all: jquery lite min pack speed
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
55 @@echo "jQuery build complete."
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually buil...
jeresig authored
56
57 ${DIST_DIR}:
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
58 @@mkdir -p ${DIST_DIR}
f01c002 @jeresig Added the new Makefile.
jeresig authored
59
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually buil...
jeresig authored
60 jquery: ${DIST_DIR} ${JQ}
f01c002 @jeresig Added the new Makefile.
jeresig authored
61
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically, a...
jeresig authored
62 ${JQ}: ${MODULES}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
63 @@echo "Building" ${JQ}
f01c002 @jeresig Added the new Makefile.
jeresig authored
64
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically, a...
jeresig authored
65 @@mkdir -p ${DIST_DIR}
766c376 @jeresig Now have accurate version information built into jquery.js - will build ...
jeresig authored
66 @@cat ${MODULES} | ${VER} > ${JQ};
f01c002 @jeresig Added the new Makefile.
jeresig authored
67
e943090 @jeresig Moved the test directory.
jeresig authored
68 @@echo ${JQ} "Built"
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
69 @@echo
f01c002 @jeresig Added the new Makefile.
jeresig authored
70
3980dc9 @wycats Added comments to various plugins and added make and ant options to make...
wycats authored
71 with_plugins: ${MODULES_WITH_PLUGINS}
72 @@echo "Building" ${JQ}
73
74 @@mkdir -p ${DIST_DIR}
75 @@cat ${MODULES_WITH_PLUGINS} | ${VER} > ${JQ};
76
77 @@echo ${JQ} "Built"
78 @@echo
79
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually buil...
jeresig authored
80 lite: ${JQ_LITE}
81
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically, a...
jeresig authored
82 ${JQ_LITE}: ${JQ}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
83 @@echo "Building" ${JQ_LITE}
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically, a...
jeresig authored
84
1fc7dcf @jeresig Fixed lite version of jQuery.
jeresig authored
85 @@cp ${JQ} ${JQ_LITE}
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically, a...
jeresig authored
86
e943090 @jeresig Moved the test directory.
jeresig authored
87 @@echo ${JQ_LITE} "Built"
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
88 @@echo
f01c002 @jeresig Added the new Makefile.
jeresig authored
89
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually buil...
jeresig authored
90 pack: ${JQ_PACK}
f01c002 @jeresig Added the new Makefile.
jeresig authored
91
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically, a...
jeresig authored
92 ${JQ_PACK}: ${JQ}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
93 @@echo "Building" ${JQ_PACK}
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically, a...
jeresig authored
94
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
95 @@echo " - Compressing using Packer"
e943090 @jeresig Moved the test directory.
jeresig authored
96 @@${JAR} ${BUILD_DIR}/build/pack.js ${JQ} ${JQ_PACK}
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically, a...
jeresig authored
97
e943090 @jeresig Moved the test directory.
jeresig authored
98 @@echo ${JQ_PACK} "Built"
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
99 @@echo
f01c002 @jeresig Added the new Makefile.
jeresig authored
100
4434b5a @jeresig Added support for making a minified version of jQuery.
jeresig authored
101 min: ${JQ_MIN}
102
103 ${JQ_MIN}: ${JQ}
104 @@echo "Building" ${JQ_MIN}
105
106 @@echo " - Compressing using Minifier"
107 @@${JAR} ${BUILD_DIR}/build/min.js ${JQ} ${JQ_MIN}
108
109 @@echo ${JQ_MIN} "Built"
110 @@echo
111
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
112 test: ${JQ}
e943090 @jeresig Moved the test directory.
jeresig authored
113 @@echo "Building Test Suite"
114 @@echo "Test Suite Built"
115 @@echo
f01c002 @jeresig Added the new Makefile.
jeresig authored
116
89a9a74 @jeresig Automated test running using Rhino (no browser required!). Still very bu...
jeresig authored
117 runtest: ${JQ} test
118 @@echo "Running Automated Test Suite"
119 @@${JAR} ${BUILD_DIR}/runtest/test.js
120
121 @@echo "Test Suite Finished"
122 @@echo
123
f01c002 @jeresig Added the new Makefile.
jeresig authored
124 docs: ${JQ}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
125 @@echo "Building Documentation"
126
127 @@echo " - Making Documentation Directory:" ${DOCS_DIR}
128 @@mkdir -p ${DOCS_DIR}
129 @@mkdir -p ${DOCS_DIR}/data
130
2d56dbc @jeresig Added .htaccess file for docs directory.
jeresig authored
131 @@echo " - Copying over htaccess file."
132 @@cp -fR ${BUILD_DIR}/docs/.htaccess ${DOCS_DIR}
133
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
134 @@echo " - Copying over script files."
269ff25 @jeresig Changed the -n flag of cp to -f, not equivalent, but it gets the job don...
jeresig authored
135 @@cp -fR ${BUILD_DIR}/docs/js ${DOCS_DIR}/js
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
136
137 @@echo " - Copying over style files."
269ff25 @jeresig Changed the -n flag of cp to -f, not equivalent, but it gets the job don...
jeresig authored
138 @@cp -fR ${BUILD_DIR}/docs/style ${DOCS_DIR}/style
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
139
140 @@echo " - Extracting ScriptDoc from" ${JQ}
e943090 @jeresig Moved the test directory.
jeresig authored
141 @@${JAR} ${BUILD_DIR}/docs/docs.js ${JQ} ${DOCS_DIR}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
142
e943090 @jeresig Moved the test directory.
jeresig authored
143 @@echo "Documentation Built"
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
144 @@echo
f01c002 @jeresig Added the new Makefile.
jeresig authored
145
73ab36b @jeresig Added the Speed Test Suite. Can be made by doing 'make speed'.
jeresig authored
146 speed: ${JQ}
147 @@echo "Building Speed Test Suite"
148
149 @@echo " - Making Speed Test Suite Directory:" ${SPEED_DIR}
150 @@mkdir -p ${SPEED_DIR}
151
152 @@echo " - Copying over script files."
153 @@cp -f ${BUILD_DIR}/speed/index.html ${SPEED_DIR}
154 @@cp -f ${BUILD_DIR}/speed/benchmarker.css ${SPEED_DIR}
155 @@cp -f ${BUILD_DIR}/speed/benchmarker.js ${SPEED_DIR}
f354e85 @jeresig Fixed make speed.
jeresig authored
156 @@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
157
158 @@echo "Speed Test Suite Built"
159 @@echo
160
f01c002 @jeresig Added the new Makefile.
jeresig authored
161 clean:
e943090 @jeresig Moved the test directory.
jeresig authored
162 @@echo "Removing Distribution directory:" ${DIST_DIR}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
163 @@rm -rf ${DIST_DIR}
e943090 @jeresig Moved the test directory.
jeresig authored
164
165 @@echo "Removing Documentation directory:" ${DOCS_DIR}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
166 @@rm -rf ${DOCS_DIR}
73ab36b @jeresig Added the Speed Test Suite. Can be made by doing 'make speed'.
jeresig authored
167
168 @@echo "Removing Speed Test Suite directory:" ${SPEED_DIR}
169 @@rm -rf ${SPEED_DIR}
Something went wrong with that request. Please try again.