From 431ca3f22aeef171ea60843e0a57b7a3377c3d31 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Thu, 19 Dec 2013 10:56:30 +0000 Subject: [PATCH] create minified mkws-complete.min.js, MKWS-83 --- tools/htdocs/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/htdocs/Makefile b/tools/htdocs/Makefile index 89e543e..fcf52b3 100644 --- a/tools/htdocs/Makefile +++ b/tools/htdocs/Makefile @@ -19,6 +19,8 @@ JQUERY_JSON_URL= https://jquery-json.googlecode.com/files/jquery.json-2.4.js HANDLEBARS_URL= http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.1.2.js -o $@ MKWS_JS= mkws-complete.js +MKWS_JS_MIN= mkws-complete.min.js +JSMIN= yui-compressor PZ2API_JS= ../../../pazpar2/js/pz2.js PZ2API_GIT= ssh://git.indexdata.com:222/home/git/pub/pazpar2 @@ -64,6 +66,10 @@ mkws-js ${MKWS_JS}: Makefile mkws.js ${JQUERY_JSON_FILE} ${JQUERY_FILE} ${HANDLE ) > ${MKWS_JS}.new mv -f ${MKWS_JS}.new ${MKWS_JS} +mkws-js-min ${MKWS_JS_MIN}: ${MKWS_JS} + ${JSMIN} ${MKWS_JS} > ${MKWS_JS_MIN} > ${MKWS_JS_MIN}.new + mv -f ${MKWS_JS_MIN}.new ${MKWS_JS_MIN} + ${JQUERY_JSON_FILE}: curl -sSf ${JQUERY_JSON_URL} -o $@ @@ -109,9 +115,9 @@ clean: rm -f $(DOCS) help: - @echo "make [ help | mkws-js | docs | clean ]" + @echo "make [ help | docs | clean ]" + @echo " [ mkws-js | mkws-js-min ]" @echo "" @echo "make JQUERY_URL=http://code.jquery.com/jquery-2.0.3.min.js clean mkws-js" @echo "" @echo "Please check ./README file too!" - -- 1.7.10.4