@@ -17,6 +17,9 @@ nightly: DIR = jquery.mobile
1717
1818# The output folder for the finished files
1919OUTPUT = compiled
20+ OUTPUT_FINAL_CSS = css_final
21+ OUTPUT_FINAL_JS = js_final
22+ OUTPUT_FINAL_IMAGES = images
2023
2124# Command to remove the latest directory from the CDN before uploading, only if using latest target
2225RMLATEST = echo ""
@@ -87,7 +90,7 @@ CSSFILES = themes/default/jquery.mobile.theme.css \
8790
8891# By default, this is what get runs when make is called without any arguments.
8992# Min and un-min CSS and JS files are the only things built
90- all : init js min css cssmin notify
93+ all : init js min css cssmin images notify
9194
9295# Build the normal CSS file.
9396css : init
@@ -98,7 +101,7 @@ css: init
98101# Build the minified CSS file
99102cssmin : init css
100103 # Build the minified CSS file
101- @@java -jar build/yuicompressor-2.4.4.jar --type css ${OUTPUT} /${CSS} >> ${OUTPUT } /${CSSMIN}
104+ @@java -jar build/yuicompressor-2.4.4.jar --type css ${OUTPUT} /${CSS} >> ${OUTPUT_FINAL_CSS } /${CSSMIN}
102105
103106# Build the normal JS file
104107js : init
@@ -112,12 +115,20 @@ init:
112115 @@rm -rf ${OUTPUT}
113116 @@mkdir ${OUTPUT}
114117
118+ @@rm -rf ${OUTPUT_FINAL_CSS}
119+ @@mkdir ${OUTPUT_FINAL_CSS}
120+
121+ @@rm -rf ${OUTPUT_FINAL_JS}
122+ @@mkdir ${OUTPUT_FINAL_JS}
123+
124+ @@rm -rf images
125+
115126# Build the minified JS file
116127min : init js
117128 # Build the minified JavaScript file
118129 @@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${OUTPUT} /${MIN}
119130 @@java -jar build/google-compiler-20110405.jar --js ${OUTPUT} /${JS} --warning_level QUIET --js_output_file ${MIN} .tmp
120- @@cat ${MIN} .tmp >> ${OUTPUT } /${MIN}
131+ @@cat ${MIN} .tmp >> ${OUTPUT_FINAL_JS } /${MIN}
121132 @@rm -f ${MIN} .tmp
122133
123134# Let the user know the files were built and where they are
@@ -128,6 +139,10 @@ notify:
128139pull :
129140 @@git pull --quiet
130141
142+ # Images
143+ images : init
144+ @@cp -r themes/default/images .
145+
131146# Zip the 4 files and the theme images into one convenient package
132147zip : init js min css cssmin
133148 @@mkdir -p ${DIR}
0 commit comments