Skip to content
Newer
Older
100644 111 lines (76 sloc) 2.25 KB
f01c002 @jeresig Added the new Makefile.
jeresig authored Aug 13, 2006
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 Aug 13, 2006
3
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored Aug 13, 2006
4 PREFIX = .
5 DOCS_DIR = ${PREFIX}/docs
6 TEST_DIR = ${PREFIX}/test
7 DIST_DIR = ${PREFIX}/dist
f01c002 @jeresig Added the new Makefile.
jeresig authored Aug 13, 2006
8
770a92a @jzaefferer Fixed bug #147, required some (ugly) modifications: changed function …
jzaefferer authored Sep 15, 2006
9 MODULES = ${SRC_DIR}/intro.js\
10 ${SRC_DIR}/jquery/*\
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored Aug 14, 2006
11 ${SRC_DIR}/event/*\
12 ${SRC_DIR}/fx/*\
87284a8 @jzaefferer Fixed typo, thanks Patrick
jzaefferer authored Sep 16, 2006
13 ${SRC_DIR}/ajax/*\
14 ${SRC_DIR}/outro.js
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored Aug 14, 2006
15
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually b…
jeresig authored Aug 13, 2006
16 JQ = ${DIST_DIR}/jquery.js
17 JQ_LITE = ${DIST_DIR}/jquery.lite.js
18 JQ_PACK = ${DIST_DIR}/jquery.pack.js
19
e943090 @jeresig Moved the test directory.
jeresig authored Aug 13, 2006
20 JAR = java -jar ${BUILD_DIR}/js.jar
21
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored Aug 14, 2006
22 all: jquery lite pack docs test
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored Aug 13, 2006
23 @@echo "jQuery build complete."
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually b…
jeresig authored Aug 13, 2006
24
25 ${DIST_DIR}:
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored Aug 13, 2006
26 @@mkdir -p ${DIST_DIR}
f01c002 @jeresig Added the new Makefile.
jeresig authored Aug 13, 2006
27
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually b…
jeresig authored Aug 13, 2006
28 jquery: ${DIST_DIR} ${JQ}
f01c002 @jeresig Added the new Makefile.
jeresig authored Aug 13, 2006
29
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored Aug 14, 2006
30 ${JQ}: ${MODULES}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored Aug 13, 2006
31 @@echo "Building" ${JQ}
f01c002 @jeresig Added the new Makefile.
jeresig authored Aug 13, 2006
32
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored Aug 14, 2006
33 @@mkdir -p ${DIST_DIR}
34 @@cat ${MODULES} > ${JQ};
f01c002 @jeresig Added the new Makefile.
jeresig authored Aug 13, 2006
35
e943090 @jeresig Moved the test directory.
jeresig authored Aug 13, 2006
36 @@echo ${JQ} "Built"
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored Aug 13, 2006
37 @@echo
f01c002 @jeresig Added the new Makefile.
jeresig authored Aug 13, 2006
38
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually b…
jeresig authored Aug 13, 2006
39 lite: ${JQ_LITE}
40
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored Aug 14, 2006
41 ${JQ_LITE}: ${JQ}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored Aug 13, 2006
42 @@echo "Building" ${JQ_LITE}
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored Aug 14, 2006
43
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored Aug 13, 2006
44 @@echo " - Removing ScriptDoc from" ${JQ}
e943090 @jeresig Moved the test directory.
jeresig authored Aug 13, 2006
45 @@${JAR} ${BUILD_DIR}/build/lite.js ${JQ} ${JQ_LITE}
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored Aug 14, 2006
46
e943090 @jeresig Moved the test directory.
jeresig authored Aug 13, 2006
47 @@echo ${JQ_LITE} "Built"
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored Aug 13, 2006
48 @@echo
f01c002 @jeresig Added the new Makefile.
jeresig authored Aug 13, 2006
49
51dd373 @jeresig Moved docs stuff to build, to be created when the docs are actually b…
jeresig authored Aug 13, 2006
50 pack: ${JQ_PACK}
f01c002 @jeresig Added the new Makefile.
jeresig authored Aug 13, 2006
51
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored Aug 14, 2006
52 ${JQ_PACK}: ${JQ}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored Aug 13, 2006
53 @@echo "Building" ${JQ_PACK}
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored Aug 14, 2006
54
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored Aug 13, 2006
55 @@echo " - Compressing using Packer"
e943090 @jeresig Moved the test directory.
jeresig authored Aug 13, 2006
56 @@${JAR} ${BUILD_DIR}/build/pack.js ${JQ} ${JQ_PACK}
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored Aug 14, 2006
57
e943090 @jeresig Moved the test directory.
jeresig authored Aug 13, 2006
58 @@echo ${JQ_PACK} "Built"
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored Aug 13, 2006
59 @@echo
f01c002 @jeresig Added the new Makefile.
jeresig authored Aug 13, 2006
60
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored Aug 13, 2006
61 test: ${JQ}
e943090 @jeresig Moved the test directory.
jeresig authored Aug 13, 2006
62 @@echo "Building Test Suite"
63
64 @@echo " - Making Test Suite Directory:" ${TEST_DIR}
65 @@mkdir -p ${TEST_DIR}
7448c61 @jeresig Massive overhauls to the test suite - it is now generated dynamically…
jeresig authored Aug 14, 2006
66
67 @@echo " - Removing any old tests"
68 @@rm -f ${TEST_DIR}/tests/*
e943090 @jeresig Moved the test directory.
jeresig authored Aug 13, 2006
69
70 @@echo " - Copying over script files."
269ff25 @jeresig Changed the -n flag of cp to -f, not equivalent, but it gets the job …
jeresig authored Aug 14, 2006
71 @@cp -fR ${BUILD_DIR}/test/js ${TEST_DIR}/js
f6ecc6a @jzaefferer Refactored test suite: All tests are now compiled into one file, runs…
jzaefferer authored Sep 16, 2006
72 @@cp -f ${BUILD_DIR}/test/index.html ${TEST_DIR}
e943090 @jeresig Moved the test directory.
jeresig authored Aug 13, 2006
73
74 @@echo " - Compiling Test Cases"
75 @@${JAR} ${BUILD_DIR}/test/test.js ${JQ} ${TEST_DIR}
76
77 @@echo "Test Suite Built"
78 @@echo
f01c002 @jeresig Added the new Makefile.
jeresig authored Aug 13, 2006
79
80 docs: ${JQ}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored Aug 13, 2006
81 @@echo "Building Documentation"
82
83 @@echo " - Making Documentation Directory:" ${DOCS_DIR}
84 @@mkdir -p ${DOCS_DIR}
85 @@mkdir -p ${DOCS_DIR}/data
86
2d56dbc @jeresig Added .htaccess file for docs directory.
jeresig authored Sep 16, 2006
87 @@echo " - Copying over htaccess file."
88 @@cp -fR ${BUILD_DIR}/docs/.htaccess ${DOCS_DIR}
89
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored Aug 13, 2006
90 @@echo " - Copying over script files."
269ff25 @jeresig Changed the -n flag of cp to -f, not equivalent, but it gets the job …
jeresig authored Aug 14, 2006
91 @@cp -fR ${BUILD_DIR}/docs/js ${DOCS_DIR}/js
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored Aug 13, 2006
92
93 @@echo " - Copying over style files."
269ff25 @jeresig Changed the -n flag of cp to -f, not equivalent, but it gets the job …
jeresig authored Aug 14, 2006
94 @@cp -fR ${BUILD_DIR}/docs/style ${DOCS_DIR}/style
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored Aug 13, 2006
95
96 @@echo " - Extracting ScriptDoc from" ${JQ}
e943090 @jeresig Moved the test directory.
jeresig authored Aug 13, 2006
97 @@${JAR} ${BUILD_DIR}/docs/docs.js ${JQ} ${DOCS_DIR}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored Aug 13, 2006
98
e943090 @jeresig Moved the test directory.
jeresig authored Aug 13, 2006
99 @@echo "Documentation Built"
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored Aug 13, 2006
100 @@echo
f01c002 @jeresig Added the new Makefile.
jeresig authored Aug 13, 2006
101
102 clean:
e943090 @jeresig Moved the test directory.
jeresig authored Aug 13, 2006
103 @@echo "Removing Distribution directory:" ${DIST_DIR}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored Aug 13, 2006
104 @@rm -rf ${DIST_DIR}
e943090 @jeresig Moved the test directory.
jeresig authored Aug 13, 2006
105
106 @@echo "Removing Test Suite directory:" ${TEST_DIR}
107 @@rm -rf ${TEST_DIR}
108
109 @@echo "Removing Documentation directory:" ${DOCS_DIR}
fc5ab8d @jeresig Made a bunch of changes to the build system.
jeresig authored Aug 13, 2006
110 @@rm -rf ${DOCS_DIR}
Something went wrong with that request. Please try again.