Skip to content

Commit

Permalink
Add a way to generate a single zip file of a release.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Oct 15, 2010
1 parent 497ea18 commit 0e76a6c
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@

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
DIR = jquery.mobile-${VER}
MAX = ${DIR}.js
MIN = ${DIR}.min.js
CSS = ${DIR}.css
CSSMIN = ${DIR}.min.css

FILES = js/jquery.ui.widget.js \
js/jquery.mobile.widget.js \
Expand Down Expand Up @@ -49,11 +50,14 @@ CSSFILES = themes/default/jquery.mobile.theme.css \

all: mobile min css cssmin

clean:
@@rm -rf ${DIR}*

css:
@@head -8 js/jquery.mobile.js > ${CSS}
@@cat ${CSSFILES} >> ${CSS}

cssmin:
cssmin: css
@@head -8 js/jquery.mobile.js > ${CSSMIN}
@@java -jar build/yuicompressor-2.4.2.jar --type css ${CSS} >> ${CSSMIN}

Expand All @@ -66,3 +70,10 @@ min: mobile
@@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

zip: clean min cssmin
@@mkdir -p ${DIR}/theme
@@cp ${DIR}*.js ${DIR}
@@cp ${DIR}*.css ${DIR}
@@cp -R themes/default/images ${DIR}
@@zip -r ${DIR}.zip ${DIR}

0 comments on commit 0e76a6c

Please sign in to comment.