From fffd6b2e7616c462eda28875e2fe3abd05bb29db Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 15 Oct 2014 17:10:35 +0100 Subject: [PATCH] Rename GENERATED macro to AVAILABLE. Add rule for installing mkws-jquery.js --- src/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 6b0cfaf..9995682 100644 --- a/src/Makefile +++ b/src/Makefile @@ -34,10 +34,10 @@ COMPONENTS = mkws-handlebars.js \ DOWNLOADABLE = ${HANDLEBARS_FILE} ${JQUERY_FILE} ${JQUERY_JSON_FILE} ${PP2_FILE} RELEASABLE = mkws.js mkws.min.js mkws-complete.js mkws-complete.min.js -GENERATED = $(DOWNLOADABLE) $(RELEASABLE) +AVAILABLE = $(DOWNLOADABLE) $(RELEASABLE) mkws-jquery.js INSTALLED_DOWNLOADABLE = $(DOWNLOADABLE:%=$(DEST)/%) INSTALLED_RELEASABLE = $(RELEASABLE:%=$(DEST)/%) -INSTALLED = $(GENERATED:%=$(DEST)/%) +INSTALLED = $(AVAILABLE:%=$(DEST)/%) all: $(INSTALLED) @@ -79,6 +79,11 @@ $(DEST)/${PP2_FILE}: curl -sSf "${PP2_URL}" -o $@.tmp mv -f $@.tmp $@ +$(DEST)/%: % + rm -f $@ + cp $? $@ + chmod 444 $@ + release: $(RELEASABLE) @if [ -f ${DEST}/releases/mkws-$(VERSION).js ]; then \ echo "*** There is already a release $(VERSION)"; \ -- 1.7.10.4