new target mkws-syntax-check
authorWolfram Schneider <wosch@indexdata.dk>
Wed, 8 Jan 2014 12:58:48 +0000 (12:58 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Wed, 8 Jan 2014 12:58:48 +0000 (12:58 +0000)
for a simple and fast check if mkws.js is valid JavaScript

tools/htdocs/Makefile

index 7b4fbe2..3099c24 100644 (file)
@@ -1,5 +1,5 @@
 ######################################################################
 ######################################################################
-# Copyright (c) 2013 IndexData ApS. http://indexdata.com
+# Copyright (c) 2013-2014 IndexData ApS. http://indexdata.com
 #
 
 ##############################
 #
 
 ##############################
@@ -72,6 +72,9 @@ mkws-js-min: mkws.min.js mkws-complete.min.js
        yui-compressor $? > $@.new
        mv -f $@.new $@
 
        yui-compressor $? > $@.new
        mv -f $@.new $@
 
+mkws-syntax-check:
+       yui-compressor mkws.js >/dev/null
+
 ${JQUERY_FILE}:
        curl -sSf ${JQUERY_URL} -o $@.new
        perl -npe 's,sourceMappingURL=jquery.*map,,' $@.new > $@
 ${JQUERY_FILE}:
        curl -sSf ${JQUERY_URL} -o $@.new
        perl -npe 's,sourceMappingURL=jquery.*map,,' $@.new > $@
@@ -132,6 +135,7 @@ clean:
 help:
        @echo "make [ help | docs | clean ]"
        @echo "     [ mkws-js | mkws-js-min ]"
 help:
        @echo "make [ help | docs | clean ]"
        @echo "     [ mkws-js | mkws-js-min ]"
+       @echo "     [ mkws-syntax-check ]"
        @echo ""
        @echo "make JQUERY_URL=http://code.jquery.com/jquery-2.0.3.min.js clean mkws-js"
        @echo ""
        @echo ""
        @echo "make JQUERY_URL=http://code.jquery.com/jquery-2.0.3.min.js clean mkws-js"
        @echo ""