@@ -25,19 +25,7 @@ deploy: STRUCTURE = jquery.mobile.structure-${VER_OFFICIAL}
2525# The CSS theme being used
2626THEME = default
2727
28- # If node is available then use node to run r.js
29- # otherwise use good old rhino/java
30- NODE = /usr/local/bin/node
31- HAS_NODE = $(shell if test -x ${NODE} ;then echo true; fi)
32-
33- ifeq ($(HAS_NODE ) , true)
34- RUN_JS = @@${NODE}
35- else
36- RUN_JS = @@java -XX:ReservedCodeCacheSize=64m -classpath build/js.jar:build/google-compiler-20111003.jar org.mozilla.javascript.tools.shell.Main
37- endif
38-
3928# Build Targets
40-
4129# When no build target is specified, all gets ran
4230all : css js zip notify
4331
@@ -53,45 +41,11 @@ init:
5341
5442# Build and minify the CSS files
5543css : init
56- # Build the CSS file with the theme included
57- ${RUN_JS} \
58- external/r.js/dist/r.js \
59- -o cssIn=css/themes/default/jquery.mobile.css \
60- optimizeCss=standard.keepComments.keepLines \
61- out=${OUTPUT} /${NAME} .compiled.css
62- @@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT} /${NAME} .css
63- @@cat ${OUTPUT} /${NAME} .compiled.css >> ${OUTPUT} /${NAME} .css
64- @@echo ${VER_MIN} > ${OUTPUT} /${NAME} .min.css
65- @@java -XX:ReservedCodeCacheSize=64m \
66- -jar build/yuicompressor-2.4.6.jar \
67- --type css ${OUTPUT} /${NAME} .compiled.css >> ${OUTPUT} /${NAME} .min.css
68- @@rm ${OUTPUT} /${NAME} .compiled.css
69- # Build the CSS Structure-only file
70- ${RUN_JS} \
71- external/r.js/dist/r.js \
72- -o cssIn=css/structure/jquery.mobile.structure.css \
73- out=${OUTPUT} /${STRUCTURE} .compiled.css
74- @@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT} /${STRUCTURE} .css
75- @@cat ${OUTPUT} /${STRUCTURE} .compiled.css >> ${OUTPUT} /${STRUCTURE} .css
76- # ..... and then minify it
77- @@echo ${VER_MIN} > ${OUTPUT} /${STRUCTURE} .min.css
78- @@java -XX:ReservedCodeCacheSize=64m \
79- -jar build/yuicompressor-2.4.6.jar \
80- --type css ${OUTPUT} /${STRUCTURE} .compiled.css >> ${OUTPUT} /${STRUCTURE} .min.css
81- @@rm ${OUTPUT} /${STRUCTURE} .compiled.css
82- # Build the theme only file
83- @@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT} /${THEME_FILENAME} .css
84- @@cat css/themes/default/jquery.mobile.theme.css >> ${OUTPUT} /${THEME_FILENAME} .css
85- # ..... and then minify it
86- @@echo ${VER_MIN} > ${OUTPUT} /${THEME_FILENAME} .min.css
87- @@java -XX:ReservedCodeCacheSize=64m \
88- -jar build/yuicompressor-2.4.6.jar \
89- --type css ${OUTPUT} /${THEME_FILENAME} .css >> ${OUTPUT} /${THEME_FILENAME} .min.css
90- # Copy in the images
91- @@cp -R css/themes/${THEME} /images ${OUTPUT} /
92- # Css portion is complete.
93- # -------------------------------------------------
44+ @@bash build/bin/css.sh
9445
46+ # Build and minify the JS files
47+ js : init
48+ @@bash build/bin/js.sh
9549
9650docs : init js css
9751 # Create the Demos/Docs/Tests/Tools
@@ -119,35 +73,6 @@ docs: init js css
11973 @@rm -rf tmp
12074 # -------------------------------------------------
12175
122- # Build and minify the JS files
123- js : init
124- # Build the JavaScript file
125- ${RUN_JS} \
126- external/r.js/dist/r.js \
127- -o baseUrl=" js" \
128- name=jquery.mobile \
129- exclude=jquery,../external/requirejs/order,../external/requirejs/depend,../external/requirejs/text,../external/requirejs/text! ../version.txt \
130- out=${OUTPUT} /${NAME} .compiled.js \
131- pragmasOnSave.jqmBuildExclude=true \
132- wrap.startFile=build/wrap.start \
133- wrap.endFile=build/wrap.end \
134- findNestedDependencies=true \
135- skipModuleInsertion=true \
136- optimize=none
137- @@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT} /${NAME} .js
138- @@cat ${OUTPUT} /${NAME} .compiled.js | ${SED_VER_API} >> ${OUTPUT} /${NAME} .js
139- @@rm ${OUTPUT} /${NAME} .compiled.js
140- # ..... and then minify it
141- @@echo ${VER_MIN} > ${OUTPUT} /${NAME} .min.js
142- @@java -XX:ReservedCodeCacheSize=64m \
143- -jar build/google-compiler-20111003.jar \
144- --js ${OUTPUT} /${NAME} .js \
145- --js_output_file ${OUTPUT} /${NAME} .compiled.js
146- @@cat ${OUTPUT} /${NAME} .compiled.js >> ${OUTPUT} /${NAME} .min.js
147- @@rm ${OUTPUT} /${NAME} .compiled.js
148- # -------------------------------------------------
149-
150-
15176# Output a message saying the process is complete
15277notify : init
15378 @@echo " The files have been built and are in: " $$(pwd ) /${OUTPUT}
0 commit comments