From 4a3fabbbbfb989bb8c9aed733ea22494faacbf86 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Wed, 26 Mar 2014 10:13:19 +0000 Subject: [PATCH] Generate mkws.js from $(COMPONENTS) (currently just mkws-core.js) --- src/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index e3e5c73..3b8b7b8 100644 --- a/src/Makefile +++ b/src/Makefile @@ -9,6 +9,8 @@ HANDLEBARS_URL= http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.1. PP2_URL= http://git.indexdata.com/?p=pazpar2.git;a=blob_plain;f=js/pz2.js;hb=HEAD VERSION = $(shell tr -d '\012' < VERSION) +COMPONENTS = mkws-core.js + MKWS_JS= mkws-complete.js JQUERY_FILE := $(shell basename ${JQUERY_URL}) @@ -86,12 +88,17 @@ release: mkws.js mkws-complete.js mkws.min.js mkws-complete.min.js echo "Made release $(VERSION)"; \ fi +mkws.js: $(COMPONENTS) + rm -f $@ + cat $(COMPONENTS) > $@ + chmod -w $@ + distclean: clean rm -f *.orig *.bak *.rej clean: rm -f ${JQUERY_FILE} ${JQUERY_JSON_FILE} ${HANDLEBARS_FILE} ${PP2_FILE} ${PP2_FILE} - rm -f mkws.min.js mkws-complete.js mkws-complete.min.js + rm -f mkws.js mkws.min.js mkws-complete.js mkws-complete.min.js help: @echo "make [ help | clean | mkws-js ]" -- 1.7.10.4