From 6fe33fcb5cd87943c27fd77c582a4e8cbe21a031 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Wed, 8 Jan 2014 12:58:48 +0000 Subject: [PATCH] new target mkws-syntax-check for a simple and fast check if mkws.js is valid JavaScript --- tools/htdocs/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/htdocs/Makefile b/tools/htdocs/Makefile index 7b4fbe2..3099c24 100644 --- a/tools/htdocs/Makefile +++ b/tools/htdocs/Makefile @@ -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 $@ +mkws-syntax-check: + yui-compressor mkws.js >/dev/null + ${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 ]" + @echo " [ mkws-syntax-check ]" @echo "" @echo "make JQUERY_URL=http://code.jquery.com/jquery-2.0.3.min.js clean mkws-js" @echo "" -- 1.7.10.4