Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 121 lines (94 sloc) 3.025 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
e2dd891 @azatoth Adding core target
azatoth authored
45 all: update_submodules core
46
47 core: jquery min lint
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
48 @@echo "jQuery build complete."
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually buil...
jeresig authored
49
50 ${DIST_DIR}:
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
51 @@mkdir -p ${DIST_DIR}
f01c002 @jeresig Added the new Makefile.
jeresig authored
52
4f9e786 @azatoth Change makefile order to only update submodules on 'all' target
azatoth authored
53 jquery: ${JQ}
f01c002 @jeresig Added the new Makefile.
jeresig authored
54
c1625f6 @zimbatm Update Rakefile to remove module wrappers (feature parity with make and ...
zimbatm authored
55 ${JQ}: ${MODULES} | ${DIST_DIR}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
56 @@echo "Building" ${JQ}
f01c002 @jeresig Added the new Makefile.
jeresig authored
57
192d6cd @jeresig Moved the copyright to the intro file, added a ! so that it passes throu...
jeresig authored
58 @@cat ${MODULES} | \
1ed4051 @jeresig Trim out the module wrappers during the build process. Follow-up to #701...
jeresig authored
59 sed 's/.function..jQuery...{//' | \
60 sed 's/}...jQuery..;//' | \
3e0cc81 @csnover Clean trailing whitespace from all files.
csnover authored
61 sed 's/@DATE/'"${DATE}"'/' | \
192d6cd @jeresig Moved the copyright to the intro file, added a ! so that it passes throu...
jeresig authored
62 ${VER} > ${JQ};
f01c002 @jeresig Added the new Makefile.
jeresig authored
63
0688344 @azatoth Makefile: cleanup
azatoth authored
64 ${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
65 @@echo "Building selector code from Sizzle"
0688344 @azatoth Makefile: cleanup
azatoth authored
66 @@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
67
2c29070 @jeresig Make sure that init is run before jquery is built (avoiding weird warnin...
jeresig authored
68 lint: jquery
69 @@if test ! -z ${JS_ENGINE}; then \
70 echo "Checking jQuery against JSLint..."; \
71 ${JS_ENGINE} build/jslint-check.js; \
72 else \
73 echo "You must have NodeJS installed in order to test jQuery against JSLint."; \
74 fi
950b5d6 @jeresig Added in integrated JSLint checking against the jQuery source. Just run ...
jeresig authored
75
4434b5a @jeresig Added support for making a minified version of jQuery.
jeresig authored
76 min: ${JQ_MIN}
77
2c29070 @jeresig Make sure that init is run before jquery is built (avoiding weird warnin...
jeresig authored
78 ${JQ_MIN}: jquery
79 @@if test ! -z ${JS_ENGINE}; then \
80 echo "Minifying jQuery" ${JQ_MIN}; \
81 ${COMPILER} ${JQ} > ${JQ_MIN}.tmp; \
2862f58 @joshvarner Remove sed from post-build code, due to portability issues between GNU a...
joshvarner authored
82 ${POST_COMPILER} ${JQ_MIN}.tmp > ${JQ_MIN}; \
83 rm -f ${JQ_MIN}.tmp; \
2c29070 @jeresig Make sure that init is run before jquery is built (avoiding weird warnin...
jeresig authored
84 else \
85 echo "You must have NodeJS installed in order to minify jQuery."; \
86 fi
87
4434b5a @jeresig Added support for making a minified version of jQuery.
jeresig authored
88
f01c002 @jeresig Added the new Makefile.
jeresig authored
89 clean:
e943090 @jeresig Moved the test directory.
jeresig authored
90 @@echo "Removing Distribution directory:" ${DIST_DIR}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored
91 @@rm -rf ${DIST_DIR}
81f65ce @jeresig Pull in the Sizzle library dynamically using a submodule and make it par...
jeresig authored
92
93 @@echo "Removing built copy of Sizzle"
6803bf1 @rdworth Minor fix to Makefile so that 'make clean' doesn't fail when run immedia...
rdworth authored
94 @@rm -f src/selector.js
5480cd3 @jeresig Shortened the build messages in the Makefile and added test/qunit and sr...
jeresig authored
95
150d3de @azatoth Introduce submodules, closes #8536
azatoth authored
96 distclean: clean
97 @@echo "Removing submodules"
5480cd3 @jeresig Shortened the build messages in the Makefile and added test/qunit and sr...
jeresig authored
98 @@rm -rf test/qunit src/sizzle
0688344 @azatoth Makefile: cleanup
azatoth authored
99
4f9e786 @azatoth Change makefile order to only update submodules on 'all' target
azatoth authored
100 # change pointers for submodules and update them to what is specified in jQuery
8a1156d @azatoth merge doesn't work when init
azatoth authored
101 # --merge doesn't work when doing an initial clone, thus test if we have non-existing
102 # submodules, then do an real update
4f9e786 @azatoth Change makefile order to only update submodules on 'all' target
azatoth authored
103 update_submodules:
8a1156d @azatoth merge doesn't work when init
azatoth authored
104 @@if [ -d .git ]; then \
105 if git submodule status | grep -q -E '^-'; then \
106 git submodule update --init --recursive; \
107 else \
108 git submodule update --init --recursive --merge; \
109 fi; \
110 fi;
4f9e786 @azatoth Change makefile order to only update submodules on 'all' target
azatoth authored
111
cd2ca7b @azatoth pull submodules make command
azatoth authored
112 # update the submodules to the latest at the most logical branch
113 pull_submodules:
50e8837 @azatoth Makefile: pull_submodules cleaning
azatoth authored
114 @@git submodule foreach "git pull \$$(git config remote.origin.url)"
cd2ca7b @azatoth pull submodules make command
azatoth authored
115 @@git submodule summary
116
bd44688 @azatoth adding pull command
azatoth authored
117 pull: pull_submodules
118 @@git pull ${REMOTE} ${BRANCH}
119
e2dd891 @azatoth Adding core target
azatoth authored
120 .PHONY: all jquery lint min clean distclean update_submodules pull_submodules pull core
Something went wrong with that request. Please try again.