Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 86 lines (73 sloc) 2.611 kb
ac62052 @jeresig Add a way to build copies of jQuery Mobile.
jeresig authored
1
2 VER = $(shell cat version.txt)
3
0e76a6c @jeresig Add a way to generate a single zip file of a release.
jeresig authored
4 DIR = jquery.mobile-${VER}
5 MAX = ${DIR}.js
6 MIN = ${DIR}.min.js
7 CSS = ${DIR}.css
8 CSSMIN = ${DIR}.min.css
ac62052 @jeresig Add a way to build copies of jQuery Mobile.
jeresig authored
9
10 FILES = js/jquery.ui.widget.js \
11 js/jquery.mobile.widget.js \
12 js/jquery.mobile.support.js \
13 js/jquery.mobile.event.js \
14 js/jquery.mobile.hashchange.js \
15 js/jquery.mobile.page.js \
16 js/jquery.mobile.clickable.js \
17 js/jquery.mobile.fixHeaderFooter.js \
18 js/jquery.mobile.forms.checkboxradio.js \
19 js/jquery.mobile.forms.textinput.js \
20 js/jquery.mobile.forms.select.js \
21 js/jquery.mobile.buttonMarkup.js \
22 js/jquery.mobile.forms.button.js \
23 js/jquery.mobile.forms.slider.js \
24 js/jquery.mobile.collapsible.js \
25 js/jquery.mobile.controlGroup.js \
26 js/jquery.mobile.fieldContain.js \
27 js/jquery.mobile.listview.js \
28 js/jquery.mobile.listview.filter.js \
29 js/jquery.mobile.dialog.js \
30 js/jquery.mobile.navbar.js \
31 js/jquery.mobile.grid.js \
32 js/jquery.mobile.js
33
6289d02 @jeresig Add the ability to compress the CSS files. Now include both the Google C...
jeresig authored
34 CSSFILES = themes/default/jquery.mobile.theme.css \
35 themes/default/jquery.mobile.core.css \
36 themes/default/jquery.mobile.transitions.css \
37 themes/default/jquery.mobile.grids.css \
38 themes/default/jquery.mobile.headerfooter.css \
39 themes/default/jquery.mobile.navbar.css \
40 themes/default/jquery.mobile.button.css \
41 themes/default/jquery.mobile.collapsible.css \
42 themes/default/jquery.mobile.controlgroup.css \
43 themes/default/jquery.mobile.dialog.css \
44 themes/default/jquery.mobile.forms.checkboxradio.css \
45 themes/default/jquery.mobile.forms.fieldcontain.css \
46 themes/default/jquery.mobile.forms.select.css \
47 themes/default/jquery.mobile.forms.textinput.css \
48 themes/default/jquery.mobile.listview.css \
49 themes/default/jquery.mobile.forms.slider.css
50
51 all: mobile min css cssmin
52
0e76a6c @jeresig Add a way to generate a single zip file of a release.
jeresig authored
53 clean:
54 @@rm -rf ${DIR}*
55
6289d02 @jeresig Add the ability to compress the CSS files. Now include both the Google C...
jeresig authored
56 css:
57 @@head -8 js/jquery.mobile.js > ${CSS}
58 @@cat ${CSSFILES} >> ${CSS}
59
0e76a6c @jeresig Add a way to generate a single zip file of a release.
jeresig authored
60 cssmin: css
6289d02 @jeresig Add the ability to compress the CSS files. Now include both the Google C...
jeresig authored
61 @@head -8 js/jquery.mobile.js > ${CSSMIN}
62 @@java -jar build/yuicompressor-2.4.2.jar --type css ${CSS} >> ${CSSMIN}
ac62052 @jeresig Add a way to build copies of jQuery Mobile.
jeresig authored
63
64 mobile:
65 @@head -8 js/jquery.mobile.js > ${MAX}
66 @@cat ${FILES} >> ${MAX}
67
68 min: mobile
69 @@head -8 js/jquery.mobile.js > ${MIN}
70 @@java -jar ../jquery/build/google-compiler-20100917.jar --js ${MAX} --warning_level QUIET --js_output_file ${MIN}.tmp
71 @@cat ${MIN}.tmp >> ${MIN}
72 @@rm -f ${MIN}.tmp
0e76a6c @jeresig Add a way to generate a single zip file of a release.
jeresig authored
73
74 zip: clean min cssmin
47a45f5 @jeresig Add deploy functionality to the build script.
jeresig authored
75 @@mkdir -p ${DIR}
76 @@cp ${DIR}*.js ${DIR}/
77 @@cp ${DIR}*.css ${DIR}/
78 @@cp -R themes/default/images ${DIR}/
0e76a6c @jeresig Add a way to generate a single zip file of a release.
jeresig authored
79 @@zip -r ${DIR}.zip ${DIR}
47a45f5 @jeresig Add deploy functionality to the build script.
jeresig authored
80
81 # Used by the jQuery team to deploy a build to the CDN
82 deploy: zip
83 @@mv ${DIR} $1
84 @@cp ${DIR}.zip $1/
85 @@scp -r $1 jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/
Something went wrong with that request. Please try again.