X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=tools%2Fhtdocs%2FMakefile;h=b561e9290242f5672dfa55108d9fd194b20dad86;hp=db7c2a61ecd3dc2174218bf336fffece872e42e5;hb=f8c826608ce2e91f200caa4e67da0edee8a783bf;hpb=0f54c9e55c3bf474c1bd87680ad0f4911cd44c36 diff --git a/tools/htdocs/Makefile b/tools/htdocs/Makefile index db7c2a6..b561e92 100644 --- a/tools/htdocs/Makefile +++ b/tools/htdocs/Makefile @@ -16,6 +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 +YUI_COMPRESSOR= $(shell which yui-compressor ../../test/bin/yui-compressor | head -1) COMPONENTS = ${SRC}/mkws-handlebars.js \ ${SRC}/mkws-core.js \ @@ -58,11 +59,11 @@ mkws-js mkws-complete.js: Makefile mkws.js ${HANDLEBARS_FILE} ${JQUERY_FILE} ${J mv -f mkws-complete.js.tmp mkws-complete.js %.min.js: %.js - yui-compressor $? > $@.tmp + ${YUI_COMPRESSOR} $? > $@.tmp mv -f $@.tmp $@ mkws-syntax-check: - yui-compressor mkws.js >/dev/null + ${YUI_COMPRESSOR} mkws.js >/dev/null ${HANDLEBARS_FILE}: curl -sSf ${HANDLEBARS_URL} -o $@.tmp