do not fail if yui-compressor is not installed
authorWolfram Schneider <wosch@indexdata.dk>
Tue, 23 Sep 2014 12:19:24 +0000 (12:19 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Tue, 23 Sep 2014 12:19:24 +0000 (12:19 +0000)
e.g. on a devel MacOS machine. Instead, a dummy wrapper will
be used and display a warning.

tools/htdocs/Makefile

index 4c81aa1..b561e92 100644 (file)
@@ -16,7 +16,7 @@ JQUERY_UI_URL =       http://code.jquery.com/ui/1.10.3/jquery-ui.js
 VERSION = $(shell tr -d '\012' < ${SRC}/VERSION)
 #HANDLEBARS=handlebars 
 HANDLEBARS=../../test/node_modules/.bin/handlebars 
 VERSION = $(shell tr -d '\012' < ${SRC}/VERSION)
 #HANDLEBARS=handlebars 
 HANDLEBARS=../../test/node_modules/.bin/handlebars 
-YUI_COMPRESSOR=yui-compressor
+YUI_COMPRESSOR= $(shell which yui-compressor ../../test/bin/yui-compressor | head -1)
 
 COMPONENTS = ${SRC}/mkws-handlebars.js \
        ${SRC}/mkws-core.js \
 
 COMPONENTS = ${SRC}/mkws-handlebars.js \
        ${SRC}/mkws-core.js \