From 40491ca77940df024268beefc7a9e07c3886ce79 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 25 Mar 2014 17:15:48 +0000 Subject: [PATCH] Add new "install" and "uninstall" rules. --- src/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Makefile b/src/Makefile index de56c71..b531df8 100644 --- a/src/Makefile +++ b/src/Makefile @@ -19,6 +19,17 @@ PP2_FILE = pz2.js INSTALLABLE = handlebars-v1.1.2.js jquery-1.10.0.min.js \ jquery.json-2.4.js mkws-complete.js mkws-complete.min.js \ mkws.min.js pz2.js +INSTALLED = $(INSTALLABLE:%=../tools/htdocs/%) + +install: $(INSTALLED) + +uninstall: + rm -f $(INSTALLED) + +../tools/htdocs/%: % + rm -f $@ + cp -p $? $@ + chmod -w $@ all: mkws.min.js mkws-complete.min.js -- 1.7.10.4