Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 111 lines (85 sloc) 2.776 kb
f01c002 @jeresig Added the new Makefile.
jeresig authored
1 SRC_DIR = src
0688344 @azatoth Makefile: cleanup
azatoth authored
2 TEST_DIR = test
f01c002 @jeresig Added the new Makefile.
jeresig authored
3 BUILD_DIR = build
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually buil...
jeresig authored
4
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
5 PREFIX = .
6 DIST_DIR = ${PREFIX}/dist
f01c002 @jeresig Added the new Makefile.
jeresig authored
7
3d0aa19 @csnover Clarify cygwin instructions slightly and swap the order of arguments to ...
csnover authored
8 JS_ENGINE ?= `which node nodejs`
d503845 @csnover Replace build system with a faster new one that uses Node and UglifyJS a...
csnover authored
9 COMPILER = ${JS_ENGINE} ${BUILD_DIR}/uglify.js --unsafe
2862f58 @joshvarner Remove sed from post-build code, due to portability issues between GNU a...
joshvarner authored
10 POST_COMPILER = ${JS_ENGINE} ${BUILD_DIR}/post-compile.js
0688344 @azatoth Makefile: cleanup
azatoth authored
11
b4e23b5 @jeresig Reorganzing the jQuery source (first phase).
jeresig authored
12 BASE_FILES = ${SRC_DIR}/core.js\
2d0bc7c @jaubourg Moves Deferred-related code into a separate module. Context handling has...
jaubourg authored
13 ${SRC_DIR}/deferred.js\
afaae84 @jeresig support.js needs to come before event.js (also placed in a temporary set...
jeresig authored
14 ${SRC_DIR}/support.js\
4afa608 @flesler jquery data: Closes #3539. Exposed jQuery.queue. Moved all the data and ...
flesler authored
15 ${SRC_DIR}/data.js\
ebad701 @jeresig Split the queue code out from data.js into a dedicated queue.js file (al...
jeresig authored
16 ${SRC_DIR}/queue.js\
8e53f7b @jeresig Fixed typo in logic, also disabled function setters in this case to all...
jeresig authored
17 ${SRC_DIR}/attributes.js\
520f1a2 @jeresig Broke the logic for .clean() wrap out into a separate, static, data stru...
jeresig authored
18 ${SRC_DIR}/event.js\
b4e23b5 @jeresig Reorganzing the jQuery source (first phase).
jeresig authored
19 ${SRC_DIR}/selector.js\
7c04a64 @brandonaaron breaking jquery out into smaller modules. added attributes.js, manipulat...
brandonaaron authored
20 ${SRC_DIR}/traversing.js\
21 ${SRC_DIR}/manipulation.js\
d7d908b @brandonaaron decoupling styles retrieval from the attr method
brandonaaron authored
22 ${SRC_DIR}/css.js\
ac80ca2 Replaced spaces with a tab in Makefile.
jaubourg authored
23 ${SRC_DIR}/ajax.js\
c43b078 @jaubourg Renamed src/transports to src/ajax (in case we need prefilters in the fu...
jaubourg authored
24 ${SRC_DIR}/ajax/jsonp.js\
25 ${SRC_DIR}/ajax/script.js\
26 ${SRC_DIR}/ajax/xhr.js\
b70872f @jeresig Renamed the 'fx' module to 'effects'. Should've been done a long time ag...
jeresig authored
27 ${SRC_DIR}/effects.js\
aea452f @brandonaaron Merged dimensions with core
brandonaaron authored
28 ${SRC_DIR}/offset.js\
29 ${SRC_DIR}/dimensions.js
3980dc9 @wycats Added comments to various plugins and added make and ant options to make...
wycats authored
30
31 MODULES = ${SRC_DIR}/intro.js\
32 ${BASE_FILES}\
33 ${SRC_DIR}/outro.js
34
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually buil...
jeresig authored
35 JQ = ${DIST_DIR}/jquery.js
4434b5a @jeresig Added support for making a minified version of jQuery.
jeresig authored
36 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
37
0688344 @azatoth Makefile: cleanup
azatoth authored
38 SIZZLE_DIR = ${SRC_DIR}/sizzle
766c376 @jeresig Now have accurate version information built into jquery.js - will build ...
jeresig authored
39
0688344 @azatoth Makefile: cleanup
azatoth authored
40 JQ_VER = $(shell cat version.txt)
9bd9ebd @jeresig Allow for versions with spaces in them, in the Makefile.
jeresig authored
41 VER = sed "s/@VERSION/${JQ_VER}/"
e943090 @jeresig Moved the test directory.
jeresig authored
42
0688344 @azatoth Makefile: cleanup
azatoth authored
43 DATE=$(shell git log -1 --pretty=format:%ad)
192d6cd @jeresig Moved the copyright to the intro file, added a ! so that it passes throu...
jeresig authored
44
4f9e786 @azatoth Change makefile order to only update submodules on 'all' target
azatoth authored
45 all: update_submodules jquery min lint
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
46 @@echo "jQuery build complete."
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually buil...
jeresig authored
47
48 ${DIST_DIR}:
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
49 @@mkdir -p ${DIST_DIR}
f01c002 @jeresig Added the new Makefile.
jeresig authored
50
4f9e786 @azatoth Change makefile order to only update submodules on 'all' target
azatoth authored
51 jquery: ${JQ}
f01c002 @jeresig Added the new Makefile.
jeresig authored
52
c1625f6 @zimbatm Update Rakefile to remove module wrappers (feature parity with make and ...
zimbatm authored
53 ${JQ}: ${MODULES} | ${DIST_DIR}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
54 @@echo "Building" ${JQ}
f01c002 @jeresig Added the new Makefile.
jeresig authored
55
192d6cd @jeresig Moved the copyright to the intro file, added a ! so that it passes throu...
jeresig authored
56 @@cat ${MODULES} | \
1ed4051 @jeresig Trim out the module wrappers during the build process. Follow-up to #701...
jeresig authored
57 sed 's/.function..jQuery...{//' | \
58 sed 's/}...jQuery..;//' | \
3e0cc81 @csnover Clean trailing whitespace from all files.
csnover authored
59 sed 's/@DATE/'"${DATE}"'/' | \
192d6cd @jeresig Moved the copyright to the intro file, added a ! so that it passes throu...
jeresig authored
60 ${VER} > ${JQ};
f01c002 @jeresig Added the new Makefile.
jeresig authored
61
0688344 @azatoth Makefile: cleanup
azatoth authored
62 ${SRC_DIR}/selector.js: ${SIZZLE_DIR}/sizzle.js
81f65ce @jeresig Pull in the Sizzle library dynamically using a submodule and make it par...
jeresig authored
63 @@echo "Building selector code from Sizzle"
0688344 @azatoth Makefile: cleanup
azatoth authored
64 @@sed '/EXPOSE/r src/sizzle-jquery.js' ${SIZZLE_DIR}/sizzle.js | grep -v window.Sizzle > ${SRC_DIR}/selector.js
81f65ce @jeresig Pull in the Sizzle library dynamically using a submodule and make it par...
jeresig authored
65
2c29070 @jeresig Make sure that init is run before jquery is built (avoiding weird warnin...
jeresig authored
66 lint: jquery
67 @@if test ! -z ${JS_ENGINE}; then \
68 echo "Checking jQuery against JSLint..."; \
69 ${JS_ENGINE} build/jslint-check.js; \
70 else \
71 echo "You must have NodeJS installed in order to test jQuery against JSLint."; \
72 fi
950b5d6 @jeresig Added in integrated JSLint checking against the jQuery source. Just run ...
jeresig authored
73
4434b5a @jeresig Added support for making a minified version of jQuery.
jeresig authored
74 min: ${JQ_MIN}
75
2c29070 @jeresig Make sure that init is run before jquery is built (avoiding weird warnin...
jeresig authored
76 ${JQ_MIN}: jquery
77 @@if test ! -z ${JS_ENGINE}; then \
78 echo "Minifying jQuery" ${JQ_MIN}; \
79 ${COMPILER} ${JQ} > ${JQ_MIN}.tmp; \
2862f58 @joshvarner Remove sed from post-build code, due to portability issues between GNU a...
joshvarner authored
80 ${POST_COMPILER} ${JQ_MIN}.tmp > ${JQ_MIN}; \
81 rm -f ${JQ_MIN}.tmp; \
2c29070 @jeresig Make sure that init is run before jquery is built (avoiding weird warnin...
jeresig authored
82 else \
83 echo "You must have NodeJS installed in order to minify jQuery."; \
84 fi
85
4434b5a @jeresig Added support for making a minified version of jQuery.
jeresig authored
86
f01c002 @jeresig Added the new Makefile.
jeresig authored
87 clean:
e943090 @jeresig Moved the test directory.
jeresig authored
88 @@echo "Removing Distribution directory:" ${DIST_DIR}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
89 @@rm -rf ${DIST_DIR}
81f65ce @jeresig Pull in the Sizzle library dynamically using a submodule and make it par...
jeresig authored
90
91 @@echo "Removing built copy of Sizzle"
6803bf1 @rdworth Minor fix to Makefile so that 'make clean' doesn't fail when run immedia...
rdworth authored
92 @@rm -f src/selector.js
5480cd3 @jeresig Shortened the build messages in the Makefile and added test/qunit and sr...
jeresig authored
93
150d3de @azatoth Introduce submodules, closes #8536
azatoth authored
94 distclean: clean
95 @@echo "Removing submodules"
5480cd3 @jeresig Shortened the build messages in the Makefile and added test/qunit and sr...
jeresig authored
96 @@rm -rf test/qunit src/sizzle
0688344 @azatoth Makefile: cleanup
azatoth authored
97
4f9e786 @azatoth Change makefile order to only update submodules on 'all' target
azatoth authored
98 # change pointers for submodules and update them to what is specified in jQuery
99 update_submodules:
100 @@if [ -d .git ]; then git submodule update --init --recursive --merge; fi
101
cd2ca7b @azatoth pull submodules make command
azatoth authored
102 # update the submodules to the latest at the most logical branch
103 pull_submodules:
104 @@git submodule foreach "git pull origin \$$(git branch --no-color --contains \$$(git rev-parse HEAD) | grep -v \( | head -1)"
105 @@git submodule summary
106
bd44688 @azatoth adding pull command
azatoth authored
107 pull: pull_submodules
108 @@git pull ${REMOTE} ${BRANCH}
109
0688344 @azatoth Makefile: cleanup
azatoth authored
110 .PHONY: all jquery lint min init jq clean
Something went wrong with that request. Please try again.