Browse files

Add the ability to compress the CSS files. Now include both the Googl…

…e Closure Compiler and the YUI Compressor (for CSS).
  • Loading branch information...
1 parent 7432ec4 commit 6289d027379db9e7bf1b26125dd76392db065a48 @jeresig jeresig committed Oct 14, 2010
Showing with 28 additions and 1 deletion.
  1. +28 −1 Makefile
  2. BIN build/google-compiler-20100917.jar
  3. BIN build/yuicompressor-2.4.2.jar
View
29 Makefile
@@ -3,6 +3,8 @@ VER = $(shell cat version.txt)
MAX = jquery.mobile-${VER}.js
MIN = jquery.mobile-${VER}.min.js
+CSS = jquery.mobile-${VER}.css
+CSSMIN = jquery.mobile-${VER}.min.css
FILES = js/jquery.ui.widget.js \
js/jquery.mobile.widget.js \
@@ -29,7 +31,32 @@ FILES = js/jquery.ui.widget.js \
js/jquery.mobile.grid.js \
js/jquery.mobile.js
-all: mobile min
+CSSFILES = themes/default/jquery.mobile.theme.css \
+ themes/default/jquery.mobile.core.css \
+ themes/default/jquery.mobile.transitions.css \
+ themes/default/jquery.mobile.grids.css \
+ themes/default/jquery.mobile.headerfooter.css \
+ themes/default/jquery.mobile.navbar.css \
+ themes/default/jquery.mobile.button.css \
+ themes/default/jquery.mobile.collapsible.css \
+ themes/default/jquery.mobile.controlgroup.css \
+ themes/default/jquery.mobile.dialog.css \
+ themes/default/jquery.mobile.forms.checkboxradio.css \
+ themes/default/jquery.mobile.forms.fieldcontain.css \
+ themes/default/jquery.mobile.forms.select.css \
+ themes/default/jquery.mobile.forms.textinput.css \
+ themes/default/jquery.mobile.listview.css \
+ themes/default/jquery.mobile.forms.slider.css
+
+all: mobile min css cssmin
+
+css:
+ @@head -8 js/jquery.mobile.js > ${CSS}
+ @@cat ${CSSFILES} >> ${CSS}
+
+cssmin:
+ @@head -8 js/jquery.mobile.js > ${CSSMIN}
+ @@java -jar build/yuicompressor-2.4.2.jar --type css ${CSS} >> ${CSSMIN}
mobile:
@@head -8 js/jquery.mobile.js > ${MAX}
View
BIN build/google-compiler-20100917.jar
Binary file not shown.
View
BIN build/yuicompressor-2.4.2.jar
Binary file not shown.

0 comments on commit 6289d02

Please sign in to comment.