Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 205 lines (169 sloc) 7.413 kb
96c1647 @eddiemonge Changes so make can be run with just make nightly for the nightly builds
eddiemonge authored
1 # The files to include when compiling the JS files
2 JSFILES = js/jquery.ui.widget.js \
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
3 js/jquery.mobile.widget.js \
4 js/jquery.mobile.media.js \
5 js/jquery.mobile.support.js \
6 js/jquery.mobile.vmouse.js \
7 js/jquery.mobile.event.js \
8 js/jquery.mobile.hashchange.js \
9 js/jquery.mobile.page.js \
10 js/jquery.mobile.core.js \
11 js/jquery.mobile.navigation.js \
e564eb1 first pass at implementing pushstate support from an external file.
scottjehl authored
12 js/jquery.mobile.navigation.pushstate.js \
19c0695 @jblas Changes to allow 3rd party transitions. Developers can now register a cu...
jblas authored
13 js/jquery.mobile.transition.js \
79d3aa6 brought back degradeInputs page option, this time as a decoupled page pl...
scottjehl authored
14 js/jquery.mobile.degradeInputs.js \
2a6c7fc This commit decouples all widgets from the page plugin so that they can ...
scottjehl authored
15 js/jquery.mobile.dialog.js \
16 js/jquery.mobile.page.sections.js \
17 js/jquery.mobile.collapsible.js \
18 js/jquery.mobile.fieldContain.js \
19 js/jquery.mobile.grid.js \
20 js/jquery.mobile.navbar.js \
21 js/jquery.mobile.listview.js \
22 js/jquery.mobile.listview.filter.js \
23 js/jquery.mobile.nojs.js \
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
24 js/jquery.mobile.forms.checkboxradio.js \
2a6c7fc This commit decouples all widgets from the page plugin so that they can ...
scottjehl authored
25 js/jquery.mobile.forms.button.js \
26 js/jquery.mobile.forms.slider.js \
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
27 js/jquery.mobile.forms.textinput.js \
2b31533 @johnbender fixed build files to include custom select
johnbender authored
28 js/jquery.mobile.forms.select.custom.js \
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
29 js/jquery.mobile.forms.select.js \
30 js/jquery.mobile.buttonMarkup.js \
31 js/jquery.mobile.controlGroup.js \
2a6c7fc This commit decouples all widgets from the page plugin so that they can ...
scottjehl authored
32 js/jquery.mobile.links.js \
33 js/jquery.mobile.fixHeaderFooter.js \
b645781 implemented native overflow scrolling based on support for -[prefix]-ove...
scottjehl authored
34 js/jquery.mobile.fixHeaderFooter.native.js \
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
35 js/jquery.mobile.init.js
36
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
37 # The files to include when compiling the CSS files
38 CSSFILES = css/structure/jquery.mobile.core.css \
bcbaa38 @eddiemonge 2700: Step 7 Silly me kept putting instead of . Fixed that typo
eddiemonge authored
39 css/structure/jquery.mobile.transitions.css \
40 css/structure/jquery.mobile.grids.css \
41 css/structure/jquery.mobile.headerfooter.css \
42 css/structure/jquery.mobile.navbar.css \
43 css/structure/jquery.mobile.button.css \
44 css/structure/jquery.mobile.collapsible.css \
45 css/structure/jquery.mobile.controlgroup.css \
46 css/structure/jquery.mobile.dialog.css \
47 css/structure/jquery.mobile.forms.checkboxradio.css \
48 css/structure/jquery.mobile.forms.fieldcontain.css \
49 css/structure/jquery.mobile.forms.select.css \
50 css/structure/jquery.mobile.forms.textinput.css \
51 css/structure/jquery.mobile.listview.css \
52 css/structure/jquery.mobile.forms.slider.css
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
53 CSSTHEMEFILES = css/themes/${THEME}/jquery.mobile.theme.css
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
54
c134acc @johnbender create separate structure and structure.min css
johnbender authored
55
56
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
57
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
58 # Helper Variables
59 # The command to replace the @VERSION in the files with the actual version
60 VER = sed "s/v@VERSION/$$(git log -1 --format=format:"Git Build: SHA1: %H <> Date: %cd")/"
61 VER_MIN = "/*! jQuery Mobile v${VER_OFFICIAL} jquerymobile.com | jquery.org/license */"
62 VER_OFFICIAL = $(shell cat version.txt)
63
64 # The output folder for the finished files
65 OUTPUT = compiled
96c1647 @eddiemonge Changes so make can be run with just make nightly for the nightly builds
eddiemonge authored
66
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
67 # The name of the files
68 NAME = jquery.mobile
69 STRUCTURE = jquery.mobile.structure
70 deploy: NAME = jquery.mobile-${VER_OFFICIAL}
71 deploy: STRUCTURE = jquery.mobile.structure-${VER_OFFICIAL}
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
72
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
73 # The CSS theme being used
74 THEME = default
47a45f5 @jeresig Add deploy functionality to the build script.
jeresig authored
75
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
76
77
78
79
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
80 # Build Targets
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
81
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
82 # When no build target is specified, all gets ran
83 all: init css js zip notify
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
84
85
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
86 # Build and minify the CSS files
87 css: init
88 # Build the CSS file with the theme included
89 @@cat js/jquery.mobile.intro.js | ${VER} > ${OUTPUT}/${NAME}.css
90 @@cat ${CSSTHEMEFILES} ${CSSFILES} >> ${OUTPUT}/${NAME}.css
91 # ..... and then minify it
92 @@echo ${VER_MIN} > ${OUTPUT}/${NAME}.min.css
93 @@java -jar build/yuicompressor-2.4.6.jar --type css ${OUTPUT}/${NAME}.css >> ${OUTPUT}/${NAME}.min.css
94 # Build the CSS Structure-only file
95 @@cat js/jquery.mobile.intro.js | ${VER} > ${OUTPUT}/${STRUCTURE}.css
96 @@cat ${CSSFILES} >> ${OUTPUT}/${STRUCTURE}.css
97 # ..... and then minify it
98 @@echo ${VER_MIN} > ${OUTPUT}/${NAME}.structure.min.css
99 @@java -jar build/yuicompressor-2.4.6.jar --type css ${OUTPUT}/${STRUCTURE}.css >> ${OUTPUT}/${STRUCTURE}.min.css
100 # ..... and then copy in the images
101 @@cp -R css/themes/${THEME}/images ${OUTPUT}/
102 # Css portion is complete.
103 # -------------------------------------------------
104
105
106 docs: init css js
107 # Create the Demos/Docs/Tests/Tools
108 @@mkdir -p tmp/${NAME}
109 @@cp -r index.html docs experiments external js/jquery.js tests tmp/${NAME}/
110 @@cp ${OUTPUT}/${NAME}.min.css ${OUTPUT}/${NAME}.min.js tmp/${NAME}/
111 # ... Update the JavaScript and CSS paths
112 @@find tmp/${NAME} -type f \
113 \( -name '*.html' -o -name '*.php' \) \
366d33e @eddiemonge Update Makefile to actually work on the server
eddiemonge authored
114 -exec perl -pi -e \
115 's|js/"|${NAME}.min.js"|g;s|css/themes/default/|${NAME}.min.css|g;s|js/jquery.js"|jquery.js"|g' {} \;
116 # ... Move and zip up the the whole folder
117 @@mv tmp/${NAME} ${OUTPUT}/${NAME}
118 @@zip -rq ${OUTPUT}/${NAME}.docs.zip ${OUTPUT}/${NAME}
119 @@mv ${OUTPUT}/${NAME} ${OUTPUT}/demos
120 # Finish by removing the temporary files
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
121 @@rm -rf tmp
122 # -------------------------------------------------
123
5f487bb @eddiemonge add images to path, remove nightly folder before moving to there so it d...
eddiemonge authored
124
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
125 # Create the output directory. This is in a separate step so its not dependant on other targets
126 init:
127 # -------------------------------------------------
128 # Building jQuery Mobile in the "${OUTPUT}" folder
a65ac5f @eddiemonge change makefile to point to CDN
eddiemonge authored
129 @@rm -rf ${OUTPUT}
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
130 @@rm -rf tmp
131 @@mkdir -p ${OUTPUT}
132 # -------------------------------------------------
38b8ee5 @eddiemonge Changed Makefile to include nightly build script and other misc fixes
eddiemonge authored
133
7e115d6 @jeresig Add in ability to push demos to the jQueryMobile.com server.
jeresig authored
134
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
135 # Build and minify the JS files
136 js: init
137 # Build the JavaScript file
138 @@cat js/jquery.mobile.intro.js | ${VER} > ${OUTPUT}/${NAME}.js
139 @@cat ${JSFILES} >> ${OUTPUT}/${NAME}.js
140 # ..... and then minify it
141 @@echo ${VER_MIN} > ${OUTPUT}/${NAME}.min.js
142 @@java -jar build/google-compiler-20111003.jar --js ${OUTPUT}/${NAME}.js --warning_level QUIET >> ${OUTPUT}/${NAME}.min.js
143 # -------------------------------------------------
144
145
146 # Output a message saying the process is complete
147 notify: init
148 @@echo "The files have been built and are in: " $$(pwd)/${OUTPUT}
149 # -------------------------------------------------
e2fa299 @jeresig Adjust sub-directory URLs before deploying the demos.
jeresig authored
150
151
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
152 # Zip up the jQm files without docs
153 zip: init css js
154 # Packaging up the files into a zip archive
155 @@zip -rq ${NAME}.tmp.zip ${OUTPUT}
156 @@mv ${NAME}.tmp.zip ${OUTPUT}/${NAME}.zip
157 # -------------------------------------------------
158
e2fa299 @jeresig Adjust sub-directory URLs before deploying the demos.
jeresig authored
159
160
19c952a @eddiemonge For all versions of make except for deploy, the outputted scripts will h...
eddiemonge authored
161
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
162 # -------------------------------------------------
163 # -------------------------------------------------
164 # -------------------------------------------------
165 #
166 # For jQuery Team Use Only
167 #
168 # -------------------------------------------------
169
170 # Push the latest git version to the CDN. This is done on a post commit hook
171 latest: init js css zip
172 # Time to put these on the CDN
173 @@scp -r ${OUTPUT}/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/latest/
174 # Do some cleanup to wrap it up
175 @@rm -rf ${OUTPUT}
176 # -------------------------------------------------
177
178 # Build the nightly backups. This is done on a server cronjob
179 nightlies: init js css zip docs
180 # Time to put these on the CDN
181 @@mkdir -p tmp/nightlies
182 @@mv ${OUTPUT} tmp/nightlies/$$(date "+%Y%m%d")
366d33e @eddiemonge Update Makefile to actually work on the server
eddiemonge authored
183 @@scp -r tmp/nightlies/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/nightlies/
a213cfa @eddiemonge Complete overhaul of Make process to be cleaner, clearer and server-frie...
eddiemonge authored
184 # Do some cleanup to wrap it up
185 @@rm -rf tmp
186 # -------------------------------------------------
187
188
189 # Deploy a finished release. This is manually done.
190 deploy: init js css docs zip
191 # Deploying all the files to the CDN
192 @@mkdir tmp
193 @@cp -r ${OUTPUT} tmp/${VER_OFFICIAL}
194 @@scp -r tmp/* jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/
195 @@rm -rf tmp/${VER_OFFICIAL}
196 # Create the Demos/Docs/Tests/Tools for jQueryMobile.com
197 @@mv ${OUTPUT}/demos tmp/${VER_OFFICIAL}
198 # ... And copied to the CDN and the jquerymobile.com server
199 @@scp -r tmp/* jqadmin@jquerymobile.com:/srv/jquerymobile.com/htdocs/demos/
200 # Do some cleanup to wrap it up
201 @@rm -rf tmp
202 @@rm -rf ${OUTPUT}
203 # -------------------------------------------------
204
Something went wrong with that request. Please try again.