configurable jquery URL, part of MKWS-24
authorWolfram Schneider <wosch@indexdata.dk>
Thu, 11 Jul 2013 14:33:32 +0000 (14:33 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Thu, 11 Jul 2013 14:34:19 +0000 (14:34 +0000)
e.g.:
make JQUERY_URL=http://code.jquery.com/jquery-2.0.3.min.js clean mkws-js

tools/htdocs/Makefile

index 9b45066..ede5186 100644 (file)
@@ -2,13 +2,16 @@
 # Copyright (c) 2013 IndexData ApS. http://indexdata.com
 #
 
+#JQUERY_URL=   http://code.jquery.com/jquery-2.0.3.min.js
+JQUERY_URL=    http://code.jquery.com/jquery-1.10.0.min.js
+
 MKWS_JS=       mkws-complete.js
 all: ${MKWS_JS} README.html
 
 mkws-js ${MKWS_JS}: ../../../libjs-pz2/pz2api.1.js mkws.js
        ( echo "/* created at: $$(date)"; \
          echo "   mkws.js GIT id: $$(git log mkws.js | head -n 1 | perl -npe 's,\S+\s+,,') */"; \
-         curl -sSf http://code.jquery.com/jquery-1.10.0.min.js; \
+         curl -sSf ${JQUERY_URL}; \
          cat ../../../libjs-pz2/pz2api.1.js mkws.js ) > ${MKWS_JS}.new 
        mv -f ${MKWS_JS}.new ${MKWS_JS}
 
@@ -19,6 +22,8 @@ clean:
 help:
        @echo "make [ help | mkws-js | clean ]"
        @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!"