From: Wolfram Schneider Date: Mon, 29 Sep 2014 14:27:24 +0000 (+0000) Subject: fix dependencies for generated file ../../src/mkws-templates.js, MKWS-273 X-Git-Tag: 1.0.0~324^2 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=3b37b7798cab326907f2e48223371ff1737b94fb;p=mkws-moved-to-github.git fix dependencies for generated file ../../src/mkws-templates.js, MKWS-273 --- diff --git a/tools/htdocs/Makefile b/tools/htdocs/Makefile index b561e92..71da3ee 100644 --- a/tools/htdocs/Makefile +++ b/tools/htdocs/Makefile @@ -35,7 +35,7 @@ COMPONENTS = ${SRC}/mkws-handlebars.js \ ${SRC}/mkws-widget-builder.js GENERATED = ${HANDLEBARS_FILE} ${JQUERY_FILE} ${JQUERY_JSON_FILE} ${PP2_FILE} \ - mkws.js mkws.min.js mkws-complete.js mkws-complete.min.js mkws-templates.js + mkws.js mkws.min.js mkws-complete.js mkws-complete.min.js ${SRC}/mkws-templates.js **make-default**: all @@ -93,14 +93,15 @@ release: mkws.js mkws-complete.js mkws.min.js mkws-complete.min.js echo "Made release $(VERSION)"; \ fi -mkws.js: mkws-templates.js $(COMPONENTS) Makefile +mkws.js: $(COMPONENTS) Makefile rm -f $@ cat ${COMPONENTS} > $@.tmp mv -f $@.tmp $@ chmod 444 $@ -mkws-templates.js: - ${HANDLEBARS} -n mkws.defaultTemplates ${SRC}/*.templates/*.handlebars -f ${SRC}/mkws-templates.js +${SRC}/mkws-templates.js: ${SRC}/*.templates/*.handlebars + ${HANDLEBARS} -n mkws.defaultTemplates ${SRC}/*.templates/*.handlebars -f $@.tmp + mv -f $@.tmp $@ mkws-html-includes: echo $(COMPONENTS) | perl -npe "s,${SRC},,g; s/\s+/\0/g" | \