Browse files

Add a way to build copies of jQuery Mobile.

  • Loading branch information...
1 parent de17e33 commit ac620525c3a86a2223c405bac9f320dab9bc3c62 @jeresig jeresig committed Oct 14, 2010
Showing with 43 additions and 0 deletions.
  1. +42 −0 Makefile
  2. +1 −0 version.txt
View
42 Makefile
@@ -0,0 +1,42 @@
+
+VER = $(shell cat version.txt)
+
+MAX = jquery.mobile-${VER}.js
+MIN = jquery.mobile-${VER}.min.js
+
+FILES = js/jquery.ui.widget.js \
+ js/jquery.mobile.widget.js \
+ js/jquery.mobile.support.js \
+ js/jquery.mobile.event.js \
+ js/jquery.mobile.hashchange.js \
+ js/jquery.mobile.page.js \
+ js/jquery.mobile.clickable.js \
+ js/jquery.mobile.fixHeaderFooter.js \
+ js/jquery.mobile.forms.checkboxradio.js \
+ js/jquery.mobile.forms.textinput.js \
+ js/jquery.mobile.forms.select.js \
+ js/jquery.mobile.forms.ajaxform.js \
+ js/jquery.mobile.buttonMarkup.js \
+ js/jquery.mobile.forms.button.js \
+ js/jquery.mobile.forms.slider.js \
+ js/jquery.mobile.collapsible.js \
+ js/jquery.mobile.controlGroup.js \
+ js/jquery.mobile.fieldContain.js \
+ js/jquery.mobile.listview.js \
+ js/jquery.mobile.listview.filter.js \
+ js/jquery.mobile.dialog.js \
+ js/jquery.mobile.navbar.js \
+ js/jquery.mobile.grid.js \
+ js/jquery.mobile.js
+
+all: mobile min
+
+mobile:
+ @@head -8 js/jquery.mobile.js > ${MAX}
+ @@cat ${FILES} >> ${MAX}
+
+min: mobile
+ @@head -8 js/jquery.mobile.js > ${MIN}
+ @@java -jar ../jquery/build/google-compiler-20100917.jar --js ${MAX} --warning_level QUIET --js_output_file ${MIN}.tmp
+ @@cat ${MIN}.tmp >> ${MIN}
+ @@rm -f ${MIN}.tmp
View
1 version.txt
@@ -0,0 +1 @@
+1.0a1

0 comments on commit ac62052

Please sign in to comment.