Add new "install" and "uninstall" rules.
authorMike Taylor <mike@indexdata.com>
Tue, 25 Mar 2014 17:15:48 +0000 (17:15 +0000)
committerMike Taylor <mike@indexdata.com>
Tue, 25 Mar 2014 17:15:48 +0000 (17:15 +0000)
src/Makefile

index de56c71..b531df8 100644 (file)
@@ -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